Class CCSaaSSecurityConfigurerAdapter.AddClusterIdSubPathToRedirectAuthenticationEntryPoint

java.lang.Object
org.springframework.security.web.authentication.LoginUrlAuthenticationEntryPoint
io.camunda.optimize.rest.security.cloud.CCSaaSSecurityConfigurerAdapter.AddClusterIdSubPathToRedirectAuthenticationEntryPoint
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, org.springframework.security.web.AuthenticationEntryPoint
Enclosing class:
CCSaaSSecurityConfigurerAdapter

public class CCSaaSSecurityConfigurerAdapter.AddClusterIdSubPathToRedirectAuthenticationEntryPoint extends org.springframework.security.web.authentication.LoginUrlAuthenticationEntryPoint
In Camunda Cloud environments all apps are served under a sub-path but there is no reverse proxy in place. Thus any redirects issued within the app are required to contain the clusterId as sub-path.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected String
    determineUrlToUseForThisRequest(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception)
     

    Methods inherited from class org.springframework.security.web.authentication.LoginUrlAuthenticationEntryPoint

    afterPropertiesSet, buildHttpsRedirectUrlForRequest, buildRedirectUrlToLoginPage, commence, getLoginFormUrl, getPortMapper, getPortResolver, isForceHttps, isUseForward, setForceHttps, setPortMapper, setPortResolver, setUseForward

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AddClusterIdSubPathToRedirectAuthenticationEntryPoint

      public AddClusterIdSubPathToRedirectAuthenticationEntryPoint(String loginFormUrl)
  • Method Details

    • determineUrlToUseForThisRequest

      protected String determineUrlToUseForThisRequest(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception)
      Overrides:
      determineUrlToUseForThisRequest in class org.springframework.security.web.authentication.LoginUrlAuthenticationEntryPoint