Skip to content
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

Opaque Token Introspector should return an Authenticated Principal #7345

Closed
jzheaux opened this issue Sep 3, 2019 · 0 comments

Comments

@jzheaux
Copy link
Contributor

commented Sep 3, 2019

Similar to OAuth2UserService, which returns an OAuth2User (which is an AuthenticatedPrincipal), it'd be appropriate for OpaqueTokenIntrospector to return OAuth2AuthenticatedPrincipal.

It shouldn't return an OpaqueToken because the token is no longer opaque once it returns from introspection.

@jzheaux jzheaux added the in: oauth2 label Sep 3, 2019

@jzheaux jzheaux self-assigned this Sep 3, 2019

@jzheaux jzheaux added this to the 5.2.0.RC1 milestone Sep 3, 2019

jzheaux added a commit to jzheaux/spring-security that referenced this issue Sep 3, 2019
Polish Opaque Token
Use OAuth2AuthenticatedPrincipal
Use BearerTokenAuthentication
Update names to reflect more generic approach.

Fixes spring-projectsgh-7344
Fixes spring-projectsgh-7345

@jzheaux jzheaux closed this in 068f4f0 Sep 3, 2019

AndreasKl added a commit to AndreasKl/spring-security that referenced this issue Sep 5, 2019
Polish Opaque Token
Use OAuth2AuthenticatedPrincipal
Use BearerTokenAuthentication
Update names to reflect more generic approach.

Fixes spring-projectsgh-7344
Fixes spring-projectsgh-7345
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.