Skip to content

Polish Resource Server DSL Error Messaging #6876

Closed
@jzheaux

Description

@jzheaux

It is possible to configure Resource Server like so:

http
    .oauth2ResourceServer()
        .authenticationManagerResolver()
        .jwt()
            .jwtDecoder();

However, this configuration doesn't make sense because AuthenticationManagerResolver supercedes any individually configured authentication mechanism.

We should error in this case since it's an invalid configuration. Specifically, if an AuthenticationManagerResolver is specified, then we should error if either jwt or opaqueToken is specified.

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