Class OpenLResponseAuthenticationConverter

  • All Implemented Interfaces:
    org.springframework.core.convert.converter.Converter<org.springframework.security.saml2.provider.service.authentication.OpenSaml4AuthenticationProvider.ResponseToken,​org.springframework.security.saml2.provider.service.authentication.Saml2Authentication>

    public class OpenLResponseAuthenticationConverter
    extends Object
    implements org.springframework.core.convert.converter.Converter<org.springframework.security.saml2.provider.service.authentication.OpenSaml4AuthenticationProvider.ResponseToken,​org.springframework.security.saml2.provider.service.authentication.Saml2Authentication>
    Creates Saml2Authentication and SimpleUser based on the ResponseToken from the IDP.
    Author:
    Eugene Biruk
    • Constructor Detail

      • OpenLResponseAuthenticationConverter

        public OpenLResponseAuthenticationConverter​(org.springframework.core.env.PropertyResolver propertyResolver,
                                                    Consumer<User> syncUserData,
                                                    BiFunction<String,​Collection<? extends org.springframework.security.core.GrantedAuthority>,​Collection<Privilege>> privilegeMapper)
    • Method Detail

      • convert

        public org.springframework.security.saml2.provider.service.authentication.Saml2Authentication convert​(org.springframework.security.saml2.provider.service.authentication.OpenSaml4AuthenticationProvider.ResponseToken responseToken)
        Creates Saml2Authentication and SimpleUser based on the ResponseToken from the IDP.
        Specified by:
        convert in interface org.springframework.core.convert.converter.Converter<org.springframework.security.saml2.provider.service.authentication.OpenSaml4AuthenticationProvider.ResponseToken,​org.springframework.security.saml2.provider.service.authentication.Saml2Authentication>
        Parameters:
        responseToken - ResponseToken from the IDP
        Returns:
        Saml2Authentication