Support custom claims for keycloak provider #18909
Unanswered
olee
asked this question in
Feature Requests
Replies: 2 comments 2 replies
-
|
@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.
2 replies
-
|
Same with WorkOS, I wanted to map some claims via the JWT template available in WorkOS, but found that Supabase has only a hardcoded |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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