-
Notifications
You must be signed in to change notification settings - Fork 6k
Remove notEmpty check for authorities in DefaultOAuth2User #9366
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
Labels
in: oauth2
An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
Comments
@mayur9991 Would you be interested in submitting an update for this? |
@jgrandja Yes, I can do it! I will open a pull request. |
mayur9991
added a commit
to mayur9991/spring-security
that referenced
this issue
Jan 27, 2021
Make DefaultOAuth2User more inline with other part of spring-security. For example, - DefaultOAuth2AuthenticatedPrincipal - AbstractAuthenticationToken Closes spring-projectsgh-9366
@jgrandja Pull request is now there for review. Can we also backport this to previous version? |
jgrandja
pushed a commit
that referenced
this issue
Feb 2, 2021
Make DefaultOAuth2User more inline with other part of spring-security. For example, - DefaultOAuth2AuthenticatedPrincipal - AbstractAuthenticationToken Closes gh-9366
jgrandja
added a commit
that referenced
this issue
Feb 2, 2021
Make DefaultOAuth2User more inline with other part of spring-security. For example, - DefaultOAuth2AuthenticatedPrincipal - AbstractAuthenticationToken Closes gh-9366
jgrandja
added a commit
that referenced
this issue
Feb 2, 2021
Make DefaultOAuth2User more inline with other part of spring-security. For example, - DefaultOAuth2AuthenticatedPrincipal - AbstractAuthenticationToken Closes gh-9366
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
in: oauth2
An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Describe the bug
Currently, DefaultOAuth2User constructor has a check to make sure that authorities parameter is not empty.
This causes a problem when you have a custom authorities extractor and authorities list is empty for particular user.
Expected behavior
The implementation should be more inline with other part of spring-security. For example
DefaultOAuth2AuthenticatedPrincipal
orAbstractAuthenticationToken
which allows to have empty list.DefaultOAuth2AuthenticatedPrincipal
AbstractAuthenticationToken
The text was updated successfully, but these errors were encountered: