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

Vaadin Control Center missing all IDM roles after deployed the same app as second time #7148

Open
AndriiRevaEpicor opened this issue Dec 24, 2024 · 2 comments
Assignees

Comments

@AndriiRevaEpicor
Copy link

Describe the bug

First time we deployed app with enabled Identity Management feature and added Users, Groups and Roles. After that we removed this app.

Second time, we deployed app with the same data as the first one and we found out that Roles data is empty but Users and Groups still same.

Expected-behavior

So either we also need to remove all Identity Management data along with deployed application or we need to remain Roles list untouchable.

Reproduction

  1. Setup Control Center as usual;
  2. Log-in to the Control Center;
  3. Click Settings button, next click on Deploy right-top button;
  4. Fill all required fields, leave Identity Management feature as enable and click Deploy right-bottom button;
  5. Add some of Users, Groups and Roles to the Identity Management.
  6. Back to the Settings and remove this application.
  7. Create another one but with the same data.
  8. Proceed to the Identity Management page of this new app and make sure that only Roles list without a data.

System Info

Windows 11
Vaadin Flow 24.5.7
Vaadin Control Center 1.1.0
Chrome 131.0.6778.205

@heruan
Copy link
Member

heruan commented Jan 8, 2025

Thanks for the feedback! This happens because roles are bound to the OpenID Connect client, which is deleted when the app is deleted, while users and groups might be shared between multiple clients (for example to have the same users with different roles on different apps).

Would a checkbox that lets you decide if you also want to delete users and groups help?

@AndriiRevaEpicor
Copy link
Author

@heruan Yes, it would be good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants