Skip to content

OAuth2 Token Response Customization #10260

Closed
@bishoybasily

Description

@bishoybasily

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 by OAuth2BodyExtractors

Metadata

Metadata

Assignees

Labels

in: oauth2An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions