-
Notifications
You must be signed in to change notification settings - Fork 97
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
Admin users switched to non-admin user after login with OIDC #70
Comments
I've found the same issue. Have you solved one? |
Yes, it requires setup on the keycloak administration dashboard for the client. There's a setting in the plugin configuration page where you can set the admin group or role. You have to create an admin group. These are instructions specifically for Keycloak idp:
|
can I see your keycloak and redmmine configuration? |
Hi @Intimaria, I am trying to configure this plugin with Microsoft OpneID. I have added the roles as you mentioned in your previous post but I am still having the same issue (admin users are set as normal users). This is the token I get from MS: Is this the way that the plugin is expecting the role? if not, is there any modification I can make on the plugin to adapt it? Thanks in advance |
Yes, you have to configure the plugin from within redmine to give administrator access to the admin role you created. |
hello , did any one find a solution still having the same issue :'( . |
Hi I have the same issue. The token generated by my IDP looks like this, according to the documentation. { The member_of claim is an array that contain a group which is mapped in redmine to be administrator. But this doesn't work. The authentication works but the users are not admin in Redmine. Could someone help me? Regards |
Made a PR to solve this problem. Added a flag that cancels the group change: |
So if I set a user as administrator in the database, they are able to view the administrator panel and administer the site. However, if they login with OIDC (specifically using Keycloak), the database is changed and the user is set back to non admin.
The plugin seems to be writing to the database with each login.
This is only happening when logging in with OIDC, if the user logs in normally, the database isn´t touched and the user remains and administrator.
The text was updated successfully, but these errors were encountered: