Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SetupUserDBService - migrate UserRoles #373

Closed
rsoika opened this issue Dec 5, 2021 · 0 comments
Closed

SetupUserDBService - migrate UserRoles #373

rsoika opened this issue Dec 5, 2021 · 0 comments
Milestone

Comments

@rsoika
Copy link
Member

rsoika commented Dec 5, 2021

Currently we set the following user roles in imixs-office-workflow

  • IMIXS-WORKFLOW-Manager
  • IMIXS-WORKFLOW-Editor
  • IMIXS-WORKFLOW-Author
  • IMIXS-WORKFLOW-Reader

This generates extra complexity in setting up a security realm in app severs (wildfly and payara)

These roles need to be replaced by the core roles:

  • IMIXS-WORKFLOW-Manager => org.imixs.ACCESSLEVEL.MANAGERACCESS
  • IMIXS-WORKFLOW-Editor => org.imixs.ACCESSLEVEL.EDITORACCESS
  • IMIXS-WORKFLOW-Author => org.imixs.ACCESSLEVEL.AUTHORACCESS
  • IMIXS-WORKFLOW-Reader => org.imixs.ACCESSLEVEL.READERACCESS

Todos

Implement a new method migrateUserRoles(). This method should iterate over all existing user profiles and replace the roles.
After that the method can call

updateUser(profile);
documentService.save(profile);	

to update the user role tables and store the new txtGroups

The migration method should add the new roles to avoid braking down existing data. The method updateUser must validate the new group names!

Empty Passwords
Empty passwords are no longer supported by wildfly. We generate random passwords instead

@rsoika rsoika added this to the 4.2.1 milestone Dec 5, 2021
rsoika added a commit that referenced this issue Dec 6, 2021
rsoika added a commit that referenced this issue Dec 6, 2021
rsoika added a commit that referenced this issue Dec 7, 2021
rsoika added a commit that referenced this issue Dec 7, 2021
rsoika added a commit that referenced this issue Jan 23, 2022
@rsoika rsoika closed this as completed Feb 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant