Package io.jmix.oidc.usermapper
Interface OidcUserMapper<T extends JmixOidcUser>
- Type Parameters:
T- type of user object used by Jmix application
- All Known Implementing Classes:
BaseOidcUserMapper,DefaultOidcUserMapper,SynchronizingOidcUserMapper
public interface OidcUserMapper<T extends JmixOidcUser>
Interface is responsible for transforming an instance of
OidcUser (from Spring Security) to JmixOidcUser which may be used by Jmix application. Authorities mapping is often delegated to the ClaimsRolesMapper.-
Method Summary
Modifier and TypeMethodDescriptiontoJmixUser(org.springframework.security.oauth2.core.oidc.user.OidcUser oidcUser) Transforms an object with user information to the instance of the user used by Jmix.
-
Method Details
-
toJmixUser
Transforms an object with user information to the instance of the user used by Jmix. Method implementations may also perform users synchronization, e.g. to store users in the database.- Parameters:
oidcUser- the object that stores information about the user received from the OpenID Provider- Returns:
- an instance of Jmix user that may be set into security context
-