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

Bug: Impersonation fails due to missing roles if an user is not logged in #7

Open
Nickosaurus opened this issue Dec 4, 2023 · 0 comments

Comments

@Nickosaurus
Copy link

Nickosaurus commented Dec 4, 2023

Hi there,

we use this extension to authenticate all users via the roles from claims setting. Hence, a new user is created when he logs in the first time.

If an admin wants to impersonate an account, which was created via this extension in the user manager, the impersonation falis as the account will have no roles assigned to it, if the user is not currently logged in. This is because this plugin assigns the roles on the fly and does not persist the last roles as seen in the claims.

Yet, persisting the roles is also no viable solution as this will ultimately conflict with the "addRolesFromExistingAccount: true" setting as the system no longer knows where the roles initially came from.

Maybe one of you guys has an inspiring idea how to implement this cleanly. In any case - thanks for this awesome extension.

As a workaround the admin can assign roles prior to the impersination and strip them after his work is finished.

@Nickosaurus Nickosaurus changed the title Bug: Impersonation fails to due Missing Roles if User is not logged in Bug: Impersonation fails due to missing roles if an user is not logged in Dec 4, 2023
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