Class SessionUrlCasAuthenticationEntryPoint
java.lang.Object
org.springframework.security.cas.web.CasAuthenticationEntryPoint
org.jenkinsci.plugins.cas.spring.security.SessionUrlCasAuthenticationEntryPoint
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean,org.springframework.security.web.AuthenticationEntryPoint
public class SessionUrlCasAuthenticationEntryPoint
extends org.springframework.security.cas.web.CasAuthenticationEntryPoint
CAS authentication entry point that will save a target URL request parameter
into a session attribute before redirecting. Additionally, the service URL
will be made absolute by adding the Jenkins root URL if necessary.
- Author:
- Fabien Crespel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringcreateServiceUrl(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) protected voidpreCommence(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) voidsetTargetUrlParameter(String targetUrlParameter) voidsetTargetUrlSessionAttribute(String targetUrlSessionAttribute) Methods inherited from class org.springframework.security.cas.web.CasAuthenticationEntryPoint
afterPropertiesSet, commence, createRedirectUrl, getEncodeServiceUrlWithSessionId, getLoginUrl, getServiceProperties, setEncodeServiceUrlWithSessionId, setLoginUrl, setRedirectStrategy, setServiceProperties
-
Constructor Details
-
SessionUrlCasAuthenticationEntryPoint
public SessionUrlCasAuthenticationEntryPoint()
-
-
Method Details
-
preCommence
protected void preCommence(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) - Overrides:
preCommencein classorg.springframework.security.cas.web.CasAuthenticationEntryPoint
-
createServiceUrl
protected String createServiceUrl(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) - Overrides:
createServiceUrlin classorg.springframework.security.cas.web.CasAuthenticationEntryPoint
-
getTargetUrlParameter
- Returns:
- the targetUrlParameter
-
setTargetUrlParameter
- Parameters:
targetUrlParameter- the targetUrlParameter to set
-
getTargetUrlSessionAttribute
- Returns:
- the targetUrlSessionAttribute
-
setTargetUrlSessionAttribute
- Parameters:
targetUrlSessionAttribute- the targetUrlSessionAttribute to set
-