-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add ability to customize the access token response #1429
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
...server/authorization/web/authentication/OAuth2TokenEndpointAuthenticationSuccessHandler.java
Outdated
Show resolved
Hide resolved
Maybe. I see you exposed |
75dea30 to
edc3e40
Compare
I was able to successfully customize the access token HTTP response converter and inject custom parameters (with test case exercising the customization) -- it's not the prettiest implementation, but it is concise and, in my opinion, sufficient enough for the amount of demand for this kind of functionality. |
jgrandja
left a comment
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 the updates @ddubson. Please see review comments.
...server/authorization/web/authentication/OAuth2TokenEndpointAuthenticationSuccessHandler.java
Outdated
Show resolved
Hide resolved
...server/authorization/web/authentication/OAuth2TokenEndpointAuthenticationSuccessHandler.java
Show resolved
Hide resolved
...server/authorization/web/authentication/OAuth2TokenEndpointAuthenticationSuccessHandler.java
Outdated
Show resolved
Hide resolved
...server/authorization/web/authentication/OAuth2TokenEndpointAuthenticationSuccessHandler.java
Outdated
Show resolved
Hide resolved
...server/authorization/web/authentication/OAuth2TokenEndpointAuthenticationSuccessHandler.java
Outdated
Show resolved
Hide resolved
...r/authorization/web/authentication/OAuth2TokenEndpointAuthenticationSuccessHandlerTests.java
Outdated
Show resolved
Hide resolved
109fbec to
13abb3e
Compare
13abb3e to
1ce7cdb
Compare
2b3109d to
f06d8fa
Compare
jgrandja
left a comment
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.
Almost there @ddubson ! After you update based on review comments, we should be good to merge.
...urity/oauth2/server/authorization/authentication/OAuth2AccessTokenAuthenticationContext.java
Outdated
Show resolved
Hide resolved
.../authorization/web/authentication/OAuth2AccessTokenResponseAuthenticationSuccessHandler.java
Outdated
Show resolved
Hide resolved
...urity/oauth2/server/authorization/authentication/OAuth2AccessTokenAuthenticationContext.java
Outdated
Show resolved
Hide resolved
...urity/oauth2/server/authorization/authentication/OAuth2AccessTokenAuthenticationContext.java
Outdated
Show resolved
Hide resolved
.../org/springframework/security/oauth2/server/authorization/web/OAuth2TokenEndpointFilter.java
Show resolved
Hide resolved
...y/oauth2/server/authorization/authentication/OAuth2AccessTokenAuthenticationContextTest.java
Outdated
Show resolved
Hide resolved
...orization/web/authentication/OAuth2AccessTokenResponseAuthenticationSuccessHandlerTests.java
Outdated
Show resolved
Hide resolved
...orization/web/authentication/OAuth2AccessTokenResponseAuthenticationSuccessHandlerTests.java
Outdated
Show resolved
Hide resolved
...orization/web/authentication/OAuth2AccessTokenResponseAuthenticationSuccessHandlerTests.java
Outdated
Show resolved
Hide resolved
...orization/web/authentication/OAuth2AccessTokenResponseAuthenticationSuccessHandlerTests.java
Outdated
Show resolved
Hide resolved
f06d8fa to
902e57b
Compare
902e57b to
5161be6
Compare
|
Thanks for the updates @ddubson. This is now merged! |
Fixes gh-925
Referenced in gh-1369
Open questions:
additionalParameters.Authenticationis of incorrect type, what should the HTTP response be?