ajnart / homarr

Customizable browser's home page to interact with your homeserver's Docker containers (e.g. Sonarr/Radarr)
https://homarr.dev
MIT License
5.97k stars 274 forks source link

Admin and Owner roles not assigned after OIDC Login #2108

Open pieman3000 opened 1 month ago

pieman3000 commented 1 month ago

Environment

Docker

Version

0.15.3

Describe the problem

Set up OIDC from Keycloak. Will log in, but although setting owner and admin groups both in Keycloak and through environment settings the login goes through only as a user.

Environment variables are:

AUTH_PROVIDER="oidc,credentials"
BASE_URL=example.com
NEXTAUTH_URL=https://example.com
AUTH_OIDC_URI="https://keycloak.example.com/realms/realm"
AUTH_OIDC_CLIENT_SECRET="redacted"
AUTH_OIDC_CLIENT_ID="oidc-homarr"
AUTH_OIDC_CLIENT_NAME="Keycloak"
AUTH_OIDC_ADMIN_GROUP="homarr-admin"
AUTH_OIDC_OWNER_GROUP="homarr-owner"

Logs

No response

Context

No response

Please tick the boxes

github-actions[bot] commented 1 month ago

Hi 👋. Thank you for submitting your first issue to Homarr. Please ensure that you've provided all nessesary information. You can use the three dots > Edit button to update your post with additional images and information. Depending on the current volume of requests, the team should get in conact with you shortly.

Divide1990 commented 2 weeks ago

I encountered a similar issue . In keycloak i defined user groups but they were not being picked up by Homarr. I then defined client roles in keycloak and added those to my user. When i did that Homarr was able to pick them up and assign the owner and/or admin role.