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

[FEATURE_REQUEST] OIDC username, groups and roles selection #1685

Open
Hazzard17h opened this issue Sep 4, 2024 · 0 comments
Open

[FEATURE_REQUEST] OIDC username, groups and roles selection #1685

Hazzard17h opened this issue Sep 4, 2024 · 0 comments
Assignees
Labels
🦄 Feature Request [ISSUE] Suggestion for new feature, update or change

Comments

@Hazzard17h
Copy link

Is your feature request related to a problem? If so, please describe.

I was able to configure OIDC with GitLab (self hosted) using:

appConfig:
  auth:
    enableOidc: true
    oidc:
      clientId: ***
      endpoint: https://gitlab.***.com/
      scope: openid profile email

But I'm not able to use show/hideForKeycloakUsers because keycloakInfo in localStorage is not filled with GitLab groups, I guess because they are saved in the OIDC profile as groups_direct.
Also username is filled using OIDC profile preferred_username, but maybe could be preferable to use email or nickname or sub.

Describe the solution you'd like

It could be very useful to be able to select from OIDC profile which fields to use to fill Dashy logged in user username, groups and roles.
Possible configurations could be:

appConfig.auth.oidc.profileFields (optional)

Field Type Required Description
username string Optional The OIDC profile field to use to fill Dashy username (default: preferred_username)
groups string Optional The OIDC profile field to use to fill Dashy groups (default: groups)
roles string Optional The OIDC profile field to use to fill Dashy roles (default: roles)

Priority

Medium (Would be very useful)

Is this something you would be keen to implement

Maybe

@Hazzard17h Hazzard17h added the 🦄 Feature Request [ISSUE] Suggestion for new feature, update or change label Sep 4, 2024
@CrazyWolf13 CrazyWolf13 assigned Lissy93 and unassigned CrazyWolf13 Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🦄 Feature Request [ISSUE] Suggestion for new feature, update or change
Projects
None yet
Development

No branches or pull requests

3 participants