Class MappedOidcUser

  • All Implemented Interfaces:
    Serializable, MappedAuthenticatedPrincipal, org.springframework.security.core.AuthenticatedPrincipal, org.springframework.security.oauth2.core.ClaimAccessor, org.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal, org.springframework.security.oauth2.core.oidc.IdTokenClaimAccessor, org.springframework.security.oauth2.core.oidc.StandardClaimAccessor, org.springframework.security.oauth2.core.oidc.user.OidcUser, org.springframework.security.oauth2.core.user.OAuth2User

    public class MappedOidcUser
    extends org.springframework.security.oauth2.core.oidc.user.DefaultOidcUser
    implements MappedAuthenticatedPrincipal
    DefaultOidcUser with a mapped username.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String getMappedName()  
      String toString()
      The constructor of PrincipalSid does a toString() when the principal of the Authentication is not a UserDetails (which it isn't in the case of a MappedOidcUser).
      • Methods inherited from class org.springframework.security.oauth2.core.oidc.user.DefaultOidcUser

        getClaims, getIdToken, getUserInfo
      • Methods inherited from class org.springframework.security.oauth2.core.user.DefaultOAuth2User

        equals, getAttributes, getAuthorities, getName, hashCode
      • Methods inherited from interface org.springframework.security.core.AuthenticatedPrincipal

        getName
      • Methods inherited from interface org.springframework.security.oauth2.core.ClaimAccessor

        containsClaim, getClaim, getClaimAsBoolean, getClaimAsInstant, getClaimAsMap, getClaimAsString, getClaimAsStringList, getClaimAsURL
      • Methods inherited from interface org.springframework.security.oauth2.core.oidc.IdTokenClaimAccessor

        getAccessTokenHash, getAudience, getAuthenticatedAt, getAuthenticationContextClass, getAuthenticationMethods, getAuthorizationCodeHash, getAuthorizedParty, getExpiresAt, getIssuedAt, getIssuer, getNonce, getSubject
      • Methods inherited from interface org.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal

        getAttribute, getAttributes, getAuthorities
      • Methods inherited from interface org.springframework.security.oauth2.core.oidc.StandardClaimAccessor

        getAddress, getBirthdate, getEmail, getEmailVerified, getFamilyName, getFullName, getGender, getGivenName, getLocale, getMiddleName, getNickName, getPhoneNumber, getPhoneNumberVerified, getPicture, getPreferredUsername, getProfile, getUpdatedAt, getWebsite, getZoneInfo
    • Method Detail

      • toString

        public String toString()
        The constructor of PrincipalSid does a toString() when the principal of the Authentication is not a UserDetails (which it isn't in the case of a MappedOidcUser).

        Fixes: https://github.com/molgenis/molgenis/issues/8978

        Overrides:
        toString in class org.springframework.security.oauth2.core.user.DefaultOAuth2User