Skip to content

Polish Resource Server DSL Error Messaging #6876

Closed

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.

Activity

  1. self-assigned this
    on May 14, 2019
  2. added
    in: oauth2An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)
    on May 14, 2019
  3. added this to the 5.2.0.M3 milestone on May 14, 2019
  4. modified the milestones: 5.2.0.M4, 5.2.0.RC1 on Aug 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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