Class DefaultOidcUserMapper

All Implemented Interfaces:
OidcUserMapper<DefaultJmixOidcUser>

public class DefaultOidcUserMapper extends BaseOidcUserMapper<DefaultJmixOidcUser>
The default implementation OidcUserMapper implementation that converts OidcUser into DefaultJmixOidcUser.
  • Field Details

  • Constructor Details

    • DefaultOidcUserMapper

      public DefaultOidcUserMapper(ClaimsRolesMapper claimsRolesMapper)
  • Method Details

    • initJmixUser

      protected DefaultJmixOidcUser initJmixUser(org.springframework.security.oauth2.core.oidc.user.OidcUser oidcUser)
      Description copied from class: BaseOidcUserMapper
      Method returns an instance of Jmix user, which may be either a new instance or an instance loaded from the user repository. Attributes and authorities will lately be filled in other methods. The responsibility of the current method is just to create or load an existing instance.
      Specified by:
      initJmixUser in class BaseOidcUserMapper<DefaultJmixOidcUser>
      Parameters:
      oidcUser - OpenID user
      Returns:
      new Jmix user instance or Jmix user loaded from user repository
    • populateUserAuthorities

      protected void populateUserAuthorities(org.springframework.security.oauth2.core.oidc.user.OidcUser oidcUser, DefaultJmixOidcUser jmixUser)
      Description copied from class: BaseOidcUserMapper
      Fills authorities of jmixUser based on information from the oidcUser
      Specified by:
      populateUserAuthorities in class BaseOidcUserMapper<DefaultJmixOidcUser>
    • populateUserAttributes

      protected void populateUserAttributes(org.springframework.security.oauth2.core.oidc.user.OidcUser oidcUser, DefaultJmixOidcUser jmixUser)
      Description copied from class: BaseOidcUserMapper
      Fills attributes of jmixUser based on information from the oidcUser
      Specified by:
      populateUserAttributes in class BaseOidcUserMapper<DefaultJmixOidcUser>