Class DefaultSamlLoginService

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean canRedirectToUrl​(javax.servlet.http.HttpServletRequest request, java.lang.String url)  
      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
      protected boolean isOnWhiteList​(java.lang.String domain)  
      void storeLoginToken​(javax.servlet.http.HttpServletResponse response, UserModel user, java.lang.String languageIsoCode)
      Method stores login token cookie for provided user and language ISO code.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultSamlLoginService

        public DefaultSamlLoginService()
    • Method Detail

      • storeLoginToken

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

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

        protected boolean canRedirectToUrl​(javax.servlet.http.HttpServletRequest request,
                                           java.lang.String url)
      • isOnWhiteList

        protected final boolean isOnWhiteList​(java.lang.String domain)