Interface SamlLoginService
-
- All Known Implementing Classes:
DefaultSamlLoginService
public interface SamlLoginServiceUtility 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 toSAMLCredentialas relayStatevoidstoreLoginToken(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 cookieuser- mapped user bySSOUserServicefor whom we create login tokenlangIsoCode- 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 toSAMLCredentialas relayState- Parameters:
context- SAMLMessageContext containing inbound and outbound transport information- Returns:
- returns redirection url obtained form SAMLMessageContext
-
-