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 Details

    • SessionUrlCasAuthenticationEntryPoint

      public SessionUrlCasAuthenticationEntryPoint()
  • Method Details

    • preCommence

      protected void preCommence(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
      Overrides:
      preCommence in class org.springframework.security.cas.web.CasAuthenticationEntryPoint
    • createServiceUrl

      protected String createServiceUrl(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
      Overrides:
      createServiceUrl in class org.springframework.security.cas.web.CasAuthenticationEntryPoint
    • getTargetUrlParameter

      public String getTargetUrlParameter()
      Returns:
      the targetUrlParameter
    • setTargetUrlParameter

      public void setTargetUrlParameter(String targetUrlParameter)
      Parameters:
      targetUrlParameter - the targetUrlParameter to set
    • getTargetUrlSessionAttribute

      public String getTargetUrlSessionAttribute()
      Returns:
      the targetUrlSessionAttribute
    • setTargetUrlSessionAttribute

      public void setTargetUrlSessionAttribute(String targetUrlSessionAttribute)
      Parameters:
      targetUrlSessionAttribute - the targetUrlSessionAttribute to set