Skip to content

OAuth2User should extend OAuth2AuthenticatedPrincipal #7378

Closed

Description

@jzheaux

OAuth2AuthenticatedPrincipal is an AuthenticatedPrincipal that adds getAuthorities as well as getAttributes. It represents the principal associated with an OAuth 2.0 token.

A user is a type of principal, so having OAuth2User extend OAuth2AuthenticatedPrincipal makes sense.

Additionally, it will reduce the code that OAuth2User needs to maintain, plus it will get the nice benefit of a getAttribute default method.

Activity

  1. added
    in: oauth2An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)
    on Sep 5, 2019
  2. added this to the 5.2.0 milestone on Sep 5, 2019
  3. added a commit that references this issue on Sep 9, 2019
    91bf1c7
  4. self-assigned this
    on Sep 29, 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