Package io.jmix.oidc.usermapper
Class DefaultOidcUserMapper
java.lang.Object
io.jmix.oidc.usermapper.BaseOidcUserMapper<DefaultJmixOidcUser>
io.jmix.oidc.usermapper.DefaultOidcUserMapper
- All Implemented Interfaces:
- OidcUserMapper<DefaultJmixOidcUser>
The default implementation 
OidcUserMapper implementation that converts OidcUser into DefaultJmixOidcUser.- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected StringgetOidcUserUsername(org.springframework.security.oauth2.core.oidc.user.OidcUser oidcUser) Extracts username from theoidcUserprotected DefaultJmixOidcUserinitJmixUser(org.springframework.security.oauth2.core.oidc.user.OidcUser oidcUser) Method returns an instance of Jmix user, which may be either a new instance or an instance loaded from the user repository.protected voidpopulateUserAttributes(org.springframework.security.oauth2.core.oidc.user.OidcUser oidcUser, DefaultJmixOidcUser jmixUser) Fills attributes ofjmixUserbased on information from theoidcUserprotected voidpopulateUserAuthorities(org.springframework.security.oauth2.core.oidc.user.OidcUser oidcUser, DefaultJmixOidcUser jmixUser) Fills authorities ofjmixUserbased on information from theoidcUserMethods inherited from class io.jmix.oidc.usermapper.BaseOidcUserMapperperformAdditionalModifications, toJmixUser
- 
Field Details- 
claimsRolesMapper
 
- 
- 
Constructor Details- 
DefaultOidcUserMapper
 
- 
- 
Method Details- 
getOidcUserUsernameprotected String getOidcUserUsername(org.springframework.security.oauth2.core.oidc.user.OidcUser oidcUser) Description copied from class:BaseOidcUserMapperExtracts username from theoidcUser- Specified by:
- getOidcUserUsernamein class- BaseOidcUserMapper<DefaultJmixOidcUser>
- Returns:
- username
 
- 
initJmixUserprotected DefaultJmixOidcUser initJmixUser(org.springframework.security.oauth2.core.oidc.user.OidcUser oidcUser) Description copied from class:BaseOidcUserMapperMethod 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:
- initJmixUserin class- BaseOidcUserMapper<DefaultJmixOidcUser>
- Parameters:
- oidcUser- OpenID user
- Returns:
- new Jmix user instance or Jmix user loaded from user repository
 
- 
populateUserAuthoritiesprotected void populateUserAuthorities(org.springframework.security.oauth2.core.oidc.user.OidcUser oidcUser, DefaultJmixOidcUser jmixUser) Description copied from class:BaseOidcUserMapperFills authorities ofjmixUserbased on information from theoidcUser- Specified by:
- populateUserAuthoritiesin class- BaseOidcUserMapper<DefaultJmixOidcUser>
 
- 
populateUserAttributesprotected void populateUserAttributes(org.springframework.security.oauth2.core.oidc.user.OidcUser oidcUser, DefaultJmixOidcUser jmixUser) Description copied from class:BaseOidcUserMapperFills attributes ofjmixUserbased on information from theoidcUser- Specified by:
- populateUserAttributesin class- BaseOidcUserMapper<DefaultJmixOidcUser>
 
 
-