ServerBearerTokenAuthenticationConverter does not support form encoded body parameter #15818
Labels
in: oauth2
An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)
status: duplicate
A duplicate of another issue
type: enhancement
A general enhancement
Milestone
Describe the bug
When using opaque tokens with an OAuth 2 resource server, webflux's
ServerBearerTokenAuthenticationConverter
does not support authentication via url-encoded POST requests with their access token as a body parameter.RFC-6750 Sec. 2.2 describes this behaviour and it is supported by
DefaultBearerTokenResolver
in mvc.To Reproduce
Create a POST endpoint for which authentication with an OAuth 2 resource server with an opaque token is needed. Doing so with the reactive stack does not allow for authentication via a body parameter.
Expected behavior
Providing a body parameter with a valid access token named
access_token
should authenticate the request.Sample
A sample project with designated test cases for the mvc and reactive stack can be found here:
https://github.com/jonah1und1/spring-security-rfc6750-2.2
The text was updated successfully, but these errors were encountered: