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

Impersonate button for admin users for ease of testing #71

Open
Sebbben opened this issue Oct 7, 2024 · 0 comments
Open

Impersonate button for admin users for ease of testing #71

Sebbben opened this issue Oct 7, 2024 · 0 comments
Labels
enhancement New feature or request new feature

Comments

@Sebbben
Copy link
Contributor

Sebbben commented Oct 7, 2024

Describe the problem you are experiencing
Since the system is set up to require a valid email to be able to log in, it would be very handy to have a button (at least for test builds) that allows admin users to impersonate other users.

Describe the solution you'd like
I think a somewhat good solution would be to have some list over all users with their roles shown on an admin page with an impersonate-button that when clicked will log the user out of the admin user, and into the impersonated user without the need to send the magic link email.

Additional context
Of course this is a security risk to have in a production build, so the feature should either be contained to dev builds only, or at least be very well secured.
This feature would help to more easily be able to test access control for different user roles without the need to have multiple working users. This would also simplify the users needed to be entered into the database for a MVP on the local hosting of the mysql server with docker

@Sebbben Sebbben added new feature enhancement New feature or request labels Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request new feature
Projects
None yet
Development

No branches or pull requests

1 participant