-
Notifications
You must be signed in to change notification settings - Fork 6k
Support nested username attribute in DefaultOAuth2User #14265
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
Conversation
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, @ahmd-nabil! I've left some feedback inline.
.../main/java/org/springframework/security/oauth2/client/userinfo/DefaultOAuth2UserService.java
Outdated
Show resolved
Hide resolved
.../main/java/org/springframework/security/oauth2/client/userinfo/DefaultOAuth2UserService.java
Outdated
Show resolved
Hide resolved
.../java/org/springframework/security/oauth2/client/userinfo/DefaultOAuth2UserServiceTests.java
Show resolved
Hide resolved
...uth2-core/src/main/java/org/springframework/security/oauth2/core/user/DefaultOAuth2User.java
Outdated
Show resolved
Hide resolved
...uth2-core/src/main/java/org/springframework/security/oauth2/core/user/DefaultOAuth2User.java
Outdated
Show resolved
Hide resolved
...org/springframework/security/oauth2/client/jackson2/OAuth2AuthenticationTokenMixinTests.java
Outdated
Show resolved
Hide resolved
...uth2-core/src/main/java/org/springframework/security/oauth2/core/user/DefaultOAuth2User.java
Outdated
Show resolved
Hide resolved
.../main/java/org/springframework/security/oauth2/client/userinfo/DefaultOAuth2UserService.java
Show resolved
Hide resolved
Hi @jzheaux. sorry for rushing you. But, I 've been waiting for a review for a while, so I am just making sure if PR is still needed. whenever you have the time I would appreciate your review :) |
Thanks for the updates, @ahmd-nabil. Some of your recent changes caused me to see that there might not be a way to remain backward compatible. For example, an application using Further, the JWT spec does not restrict characters for custom claim names, meaning that it is technically possible for Given that, I think we might need to take a different route, and hopefully one that is less invasive. To that end, I've pushed a change to my fork that takes a different approach. If you like it, you are welcome to merge it to your branch. |
thanks @jzheaux merged. and as always thanks for your guidance :) |
Great, thanks @ahmd-nabil. Are you able to also do the same for If not, I can add that as a polish. Either way, I think we're ready to separate the existing code cleanup into a separate commit and squash the other changes into a single commit. |
TY @jzheaux, I've separated the commit into 2 of them (I had to copy paste a lot to do that, I wonder if there is a better way). |
Closes spring-projectsgh-14186 Signed-off-by: ahmd-nabil <[email protected]>
Signed-off-by: ahmd-nabil <[email protected]>
- Add Tests - Add Reactive Support Issue spring-projectsgh-14186
Thanks, @ahmd-nabil! This is now merged into |
ISSUE gh-14186