Allow specify header in ServerBearerTokenAuthenticationConverter #8337
Labels
in: oauth2
An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)
type: enhancement
A general enhancement
Milestone
Summary
I'd like to be able to use the current ServerBearerTokenAuthenticationConverter but want to use a different header (
HttpHeaders.PROXY_AUTHORIZATION
) for my Spring Cloud Gateway Instance.Actual Behavior
Authentication must be taken from the
HttpHeaders.AUTHORIZATION
.Expected Behavior
I should be able to supply what Header I would like to extract my token from. If not specified default to
HttpHeaders.AUTHORIZATION
.Version
All versions, enhancement request.
Notes
These changes are straight forward and I can open a PR for these changes if deemed necessary.
The text was updated successfully, but these errors were encountered: