-
Notifications
You must be signed in to change notification settings - Fork 225
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
Added display_name_claim in jwt_config which sets the user's display name upon registration #17708
Conversation
…name upon registration
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.
Thanks for your contribution @EnneS, and apologies for the slow review. I've gone ahead and added a unit test for the newly added option so we can ensure it doesn't break in the future.
For the benefit of others: the JWT login method is non-standard, and as such we can change it without needing a Matrix Spec Change. Likewise JWT's allow adding any fields you like to them in addition to the specified ones.
The new display_name_claim
option allows setting the name of the field inside the JWT payload which is expected to contain a display_name
. This will only be checked on the first login of a user.
Everything checks out, thank you!
Just did an issue on this #17807 - what a coincidence! |
Cheers (; |
Why isn't this mentioned in the release documentation? |
@col-panic I'm not sure what you mean, but when this is released in Synapse v1.118 the newsfile for this change will appear in the changelog and release notes. Edit: perhaps the confusion is that the first release candidate for Synapse v1.117 was cut on October 8th, a day before this PR was merged. This change will be there in Synapse v1.118rc1, due on October 22nd, and in the full release a week later! |
@anoadragon453 oh ok, thank you very much, I just saw the commit that already went in, and assumed that it was forgotten! |
Added the display_name_claim option to the JWT configuration. This option allows specifying the claim key that contains the user's display name in the JWT payload.
Pull Request Checklist
EventStore
toEventWorkerStore
.".code blocks
.(run the linters)