Skip to content

Allow specify header in ServerBearerTokenAuthenticationConverter #8337

Closed
@TJReinert

Description

@TJReinert

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.

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

Relationships

None yet

Development

No branches or pull requests

Issue actions