Class OAuthAccessTokenAuthorityPrincipalProvider

java.lang.Object
io.meeds.oauth2.server.plugin.OAuthAccessTokenAuthorityPrincipalProvider
All Implemented Interfaces:
OAuthAccessTokenAuthorityProvider

@Service @Order(2147483647) public class OAuthAccessTokenAuthorityPrincipalProvider extends Object implements OAuthAccessTokenAuthorityProvider
  • Constructor Details

    • OAuthAccessTokenAuthorityPrincipalProvider

      public OAuthAccessTokenAuthorityPrincipalProvider()
  • Method Details

    • provideAuthorities

      public Set<String> provideAuthorities(org.springframework.security.oauth2.server.authorization.token.OAuth2TokenContext context)
      Specified by:
      provideAuthorities in interface OAuthAccessTokenAuthorityProvider
      Parameters:
      context - the access token being issued
      Returns:
      the authorities of the token, or null or empty to let another provider answer
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface OAuthAccessTokenAuthorityProvider
      Returns:
      this provider's position, lower values consulted first — the Spring Ordered convention