Class DefaultSamlLoginService
- java.lang.Object
-
- de.hybris.platform.samlsinglesignon.DefaultSamlLoginService
-
- All Implemented Interfaces:
SamlLoginService
public class DefaultSamlLoginService extends java.lang.Object implements SamlLoginService
Default implementation of theSamlLoginServiceinterface
-
-
Constructor Summary
Constructors Constructor Description DefaultSamlLoginService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanRedirectToUrl(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 toSAMLCredentialas relayStateprotected booleanisOnWhiteList(java.lang.String domain)voidstoreLoginToken(javax.servlet.http.HttpServletResponse response, UserModel user, java.lang.String languageIsoCode)Method stores login token cookie for provided user and language ISO code.
-
-
-
Method Detail
-
storeLoginToken
public void storeLoginToken(javax.servlet.http.HttpServletResponse response, UserModel user, java.lang.String languageIsoCode)Description copied from interface:SamlLoginServiceMethod stores login token cookie for provided user and language ISO code. Cookie is used by remember me service to authenticate user- Specified by:
storeLoginTokenin interfaceSamlLoginService- Parameters:
response- HttpServletResponse to store login token cookieuser- mapped user bySSOUserServicefor whom we create login tokenlanguageIsoCode- 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:SamlLoginServiceMethod retrieves redirection url passed in request param of the saved request for later passing it toSAMLCredentialas relayState- Specified by:
getRedirectionUrlin interfaceSamlLoginService- 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)
-
-