-
Notifications
You must be signed in to change notification settings - Fork 6k
OAuth2 Token Response Customization #10260
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)
type: enhancement
A general enhancement
Comments
Thanks for the suggestion, @bishoybasily. I think it makes sense to add a Are you able to submit a PR to add this? |
bishoybasily
added a commit
to bishoybasily/spring-security
that referenced
this issue
Sep 14, 2021
bishoybasily
added a commit
to bishoybasily/spring-security
that referenced
this issue
Sep 15, 2021
bishoybasily
added a commit
to bishoybasily/spring-security
that referenced
this issue
Sep 16, 2021
Add setBodyExtractor Closes spring-projectsgh-10260
bishoybasily
added a commit
to bishoybasily/spring-security
that referenced
this issue
Sep 16, 2021
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)
type: enhancement
A general enhancement
Summary
Provide a way to customize the token response being extracted by
OAuth2BodyExtractors
before parsing it.Current Behavior
Using
WebClient
to authenticate against a server that returns custom JSON Response, for example: {"Token":"xyz"},where "xyz" is the token and "bearer" is the type, but since the server doesn't follow the right naming convention and some properties are missing, I can't read the token.
Desired Behavior
A way to customize the raw
Map<String, Object>
before it gets decoded byOAuth2BodyExtractors
The text was updated successfully, but these errors were encountered: