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
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
createServiceUrl
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) protected void
preCommence
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) void
setTargetUrlParameter
(String targetUrlParameter) void
setTargetUrlSessionAttribute
(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:
preCommence
in classorg.springframework.security.cas.web.CasAuthenticationEntryPoint
-
createServiceUrl
protected String createServiceUrl(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) - Overrides:
createServiceUrl
in 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
-