-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
OIDC claim for preferred username #2798
Comments
https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims We already set the name claim as the users display name if the profile scope is requested. We can set the Also it looks like in the harbor 2.4 docs that there should be a configuration attribute named "Username Claim" when you configure automatic onboarding. Try setting this to sub. |
Ah nice, maybe it's worth clarifying somewhere which claims Authelia supports out of the box? Maybe somewhere here? https://github.com/authelia/chartrepo/blob/master/charts/authelia/values.yaml#L975 |
It's already clearly outlined in the docs: https://www.authelia.com/docs/configuration/identity-providers/oidc.html#scope-definitions |
This adds the missing preferred username claim to the ID Token for OIDC. Fixes #2798
@laurivosandi just letting you know we added the preferred_username claim which should be available in the next patch/minor release. |
I guess the root problem here was being newcomer to OIDC in general (scopes vs claims). Thanks for clarifying anyway :) |
No drama at all! @laurivosandi just a forward warning, based on some intense reading of the spec, it's expected |
I noticed that |
Yes, it's an opaque identifier in the form of a UUID v4. |
Looks like "standard" one is
name
, at least that's what Harbor suggests using.Please add the username claim that would allow forwarding username from AD
The text was updated successfully, but these errors were encountered: