Skip to content

OAuth2User should extend OAuth2AuthenticatedPrincipal #7378

Closed
@jzheaux

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.

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