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)
Is your feature request related to a problem? If so, please describe.
I was able to configure OIDC with GitLab (self hosted) using:
But I'm not able to use
show/hideForKeycloakUsers
becausekeycloakInfo
in localStorage is not filled with GitLab groups, I guess because they are saved in the OIDC profile asgroups_direct
. Alsousername
is filled using OIDC profilepreferred_username
, but maybe could be preferable to useemail
ornickname
orsub
.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
androles
. Possible configurations could be:appConfig.auth.oidc.profileFields
(optional)username
string
preferred_username
)groups
string
groups
)roles
string
roles
)Priority
Medium (Would be very useful)
Is this something you would be keen to implement
Maybe