Skip to content

Allow configuring oauth2ResourceServer() with custom provider #6629

@OrangeDog

Description

@OrangeDog

At the moment if you do not configure jwt() (or opaqueToken() on the master branch) the configurer will throw an IllegalStateException.

However, all that is needed to support another format is to add an AuthenticationProvider supporting BearerTokenAuthenticationToken. Because the configurer throws, it forces you to manually configure everything else yourself as well.

Instead, it should either allow setting a specific provider, or warn instead of throwing if it cannot configure one.

Related: #6209

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions