Interface SamlLoginService

  • All Known Implementing Classes:
    DefaultSamlLoginService

    public interface SamlLoginService
    Utility service for SAML login process, helping deal with storing login token and obtaining redirection url to pass as relayState
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.Optional<java.lang.String> getRedirectionUrl​(org.springframework.security.saml.context.SAMLMessageContext context)
      Method retrieves redirection url passed in request param of the saved request for later passing it to SAMLCredential as relayState
      void storeLoginToken​(javax.servlet.http.HttpServletResponse response, UserModel user, java.lang.String langIsoCode)
      Method stores login token cookie for provided user and language ISO code.
    • Method Detail

      • storeLoginToken

        void storeLoginToken​(javax.servlet.http.HttpServletResponse response,
                             UserModel user,
                             java.lang.String langIsoCode)
        Method stores login token cookie for provided user and language ISO code. Cookie is used by remember me service to authenticate user
        Parameters:
        response - HttpServletResponse to store login token cookie
        user - mapped user by SSOUserService for whom we create login token
        langIsoCode - language ISO code to set up for user
      • getRedirectionUrl

        java.util.Optional<java.lang.String> getRedirectionUrl​(org.springframework.security.saml.context.SAMLMessageContext context)
        Method retrieves redirection url passed in request param of the saved request for later passing it to SAMLCredential as relayState
        Parameters:
        context - SAMLMessageContext containing inbound and outbound transport information
        Returns:
        returns redirection url obtained form SAMLMessageContext