Interface OAuth2User

All Known Subinterfaces:
OidcUser
All Known Implementing Classes:
DefaultOAuth2User, DefaultOidcUser

public interface OAuth2User
A user as an identity provider described them.
  • Method Details

    • getAttributes

      Map<String,Object> getAttributes()
      What the provider said of the user, by name.
    • getAuthorities

      Collection<? extends GrantedAuthority> getAuthorities()
    • getName

      String getName()
      What the user is called here: the value of the provider's name attribute, or the local account an OAuth2UserService tied them to.