java.lang.Object
com.irurueta.authserver.authorization.api.web.tokens.UserInfoMapper
All Implemented Interfaces:
Function<org.springframework.security.oauth2.server.authorization.oidc.authentication.OidcUserInfoAuthenticationContext,org.springframework.security.oauth2.core.oidc.OidcUserInfo>

@Component public class UserInfoMapper extends Object implements Function<org.springframework.security.oauth2.server.authorization.oidc.authentication.OidcUserInfoAuthenticationContext,org.springframework.security.oauth2.core.oidc.OidcUserInfo>
Builds the OpenID Connect UserInfo response from the account of the user, limited to the granted scopes: the sub claim always; preferred_username, roles and tenant with the profile scope; email and email_verified with the email scope.
  • Field Details

  • Constructor Details

    • UserInfoMapper

      public UserInfoMapper()
  • Method Details

    • apply

      public org.springframework.security.oauth2.core.oidc.OidcUserInfo apply(org.springframework.security.oauth2.server.authorization.oidc.authentication.OidcUserInfoAuthenticationContext context)
      Specified by:
      apply in interface Function<org.springframework.security.oauth2.server.authorization.oidc.authentication.OidcUserInfoAuthenticationContext,org.springframework.security.oauth2.core.oidc.OidcUserInfo>