Enhancement: Ability to use the "sub" claim from OpenID for the username #4243
alihacks
started this conversation in
Feature Requests & Suggestions
Replies: 2 comments 1 reply
-
isn't sub usually an ID? a new environment variable would be appreciated. I would like to write some tests first to test the existing behavior, or if you want to take a shot at that as well. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Sent a PR #4248 for the claims discussions. Please take a look. As for documentation, there isn't a "generic" OIDC page, should I add these vars under the keycloak page (which I used in my case)? |
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.
-
What features would you like to see added?
Currently, the username field is populated from "username", "given_name" or "email" fields - in that order. I would like to populate this from the "sub" claim. I would like to either support that in code or introduce new environment variable
OPENID_USERNAME_CLAIM
or similar to allow the user to configure thisMore details
n/a
Which components are impacted by your request?
No response
Pictures
No response
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions