Interface SamlUserMapper<T extends JmixSamlUserDetails>

Type Parameters:
T - type of user object used by Jmix application
All Known Implementing Classes:
BaseSamlUserMapper, DefaultSamlUserMapper, SynchronizingSamlUserMapper

@NullMarked public interface SamlUserMapper<T extends JmixSamlUserDetails>
Interface is responsible for mapping SAML assertion into JmixSamlUserDetails. Authorities mapping is often delegated to the SamlAssertionRolesMapper.
  • Method Summary

    Modifier and Type
    Method
    Description
    toJmixUser(org.opensaml.saml.saml2.core.Assertion assertion, org.springframework.security.saml2.provider.service.authentication.OpenSaml5AuthenticationProvider.ResponseToken responseToken)
    Transforms an assertion into the instance of the user used by Jmix.
  • Method Details

    • toJmixUser

      T toJmixUser(org.opensaml.saml.saml2.core.Assertion assertion, org.springframework.security.saml2.provider.service.authentication.OpenSaml5AuthenticationProvider.ResponseToken responseToken)
      Transforms an assertion into the instance of the user used by Jmix. Method implementations may also perform users synchronization, e.g., to store users in the database.
      Parameters:
      assertion - SAML assertion
      responseToken - the object that stores information about the authentication response from SAML provider
      Returns:
      an instance of Jmix user that may be set into security context