Support custom claims for keycloak provider #18909
Unanswered
olee
asked this question in
Feature Requests
Replies: 1 comment 1 reply
-
@olee Did you manage to get a working solution ready for review? If not I am happy to claim this issue |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently the keycloak provider seems to drop any custom claims present in the token: https://github.com/supabase/gotrue/blob/master/internal/api/provider/keycloak.go#L80-L90
Other providers like the Azure provider for example do map custom claims to be present in the metadata: https://github.com/supabase/gotrue/blob/master/internal/api/provider/oidc.go#L301
EDIT: I managed to locally adjust the code for the keycloak provider to make this work. Will try to prepare a PR soon:
Beta Was this translation helpful? Give feedback.
All reactions