Class HvlOAuth2LoginUrlAuthEntryPoint
java.lang.Object
org.springframework.security.web.authentication.LoginUrlAuthenticationEntryPoint
tr.com.havelsan.javarch.oauth.auth.starter.oidc.HvlOAuth2LoginUrlAuthEntryPoint
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
,org.springframework.security.web.AuthenticationEntryPoint
@Component
public class HvlOAuth2LoginUrlAuthEntryPoint
extends org.springframework.security.web.authentication.LoginUrlAuthenticationEntryPoint
Auth Entry Point component is used to redirect request to login url when an error happens or unauthorized request comes
-
Constructor Summary
ConstructorDescriptionHvlOAuth2LoginUrlAuthEntryPoint
(HvlOAuth2AuthProviderProperties oauth2AuthProviderPropsHvl) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
buildRedirectUrlToLoginPage
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException authException) Methods inherited from class org.springframework.security.web.authentication.LoginUrlAuthenticationEntryPoint
afterPropertiesSet, buildHttpsRedirectUrlForRequest, commence, determineUrlToUseForThisRequest, getLoginFormUrl, getPortMapper, getPortResolver, isForceHttps, isUseForward, setForceHttps, setPortMapper, setPortResolver, setUseForward
-
Constructor Details
-
HvlOAuth2LoginUrlAuthEntryPoint
-
-
Method Details
-
buildRedirectUrlToLoginPage
protected String buildRedirectUrlToLoginPage(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException authException) - Overrides:
buildRedirectUrlToLoginPage
in classorg.springframework.security.web.authentication.LoginUrlAuthenticationEntryPoint
-