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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 : Define OAUTH2 Users as admins #698

Open
candidson opened this issue Mar 3, 2022 · 0 comments
Open

馃悰 : Define OAUTH2 Users as admins #698

candidson opened this issue Mar 3, 2022 · 0 comments
Labels
馃悰 bug Something isn't working

Comments

@candidson
Copy link

Describe the bug
I have been using the gitlab provider for generic OAUTH2 authentication. In general, OAUTH2 users are able to successfully login. However, when these users are assigned the "administrator" roles, this doesn't appear in the "authority" payload and lead to the user not having access to the administrator pages.

To Reproduce
Steps to reproduce the behavior:

  1. Set up "gitlab" provider for oauth2
  2. Login with the oauth2 identity to have the identity imported in the user list
  3. Login with the local admin user and set the oauth2 identity as admin
  4. Log in again with oauth2 user, and check that the user isn't admin, since pages such as "users" are not available.

Expected behavior
The oauth2 user should also be configured as "administrator" and have access to admin pages such as "users".

Screenshots
"user" Payload
image

"authority" Payload
image

Desktop (please complete the following information):

  • OS: Kubernetes, Ubuntu
  • Browser Chrome
  • Version 2.3.0-SNAPSHOT 528fc79

Additional context
None

@candidson candidson added the 馃悰 bug Something isn't working label Mar 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
馃悰 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant