-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Allow preferred_username claim to be set for Crowd connector #1684
Allow preferred_username claim to be set for Crowd connector #1684
Conversation
Hi @srenatus @bonifaido @sagikazarmark - I was wondering if I could get some feedback on what this still needs or possibly just have this approved... It's for the recently added Crowd connector. 😃 Passes the checks and latest changes from master were merged in. |
@mvdkleijn thanks a lot for your work. This is wonderful! It would be great to get it merged. |
oof... a minute or two for the code change and 10-15 minutes just to get the PR updated. Bad timing for stability issues in Github. :) |
The build / checks failed due to stability issues with Github. Can they be re-triggered manually or do I need to push a dummy commit? |
just triggered it again, github is having a hard time these days |
Thanks for the retrigger @bonifaido Sadly Github is still having issues. I'll check back later. This PR should be good to merge anyway. I don't believe this needs anything else and the change is backwards compatible. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just managed to retrigger again, now it is green again, it LGTM!
…1684) * Add atlassiancrowd connector to list in readme * Add TestIdentityFromCrowdUser * Set preferred_username claim when configured * Add preferredUsernameField option to docs * Log warning when mapping invalid crowd field
What this is
In the current implementation, the
preferred_username
claim remains empty. Some clients might require that claim and Dex supports it, if set from the connector's side.This PR allows the connector to optionally support the
preferred_username
claim. It achieves this by allowing a user to choose to fill thepreferred_username
claim by one of the available Crowd fields. Specifically:key
,name
oremail
. Invalid options cause the claim to remain empty.Breaking change: No. Existing configuration should not notice this change.
Optional: Yes.
Notes:
identityFromCrowdUser
function which was not extensively tested before