Class SpringAddonsOauth2AuthenticationFailureHandler
java.lang.Object
com.c4_soft.springaddons.security.oidc.starter.synchronised.client.SpringAddonsOauth2AuthenticationFailureHandler
- All Implemented Interfaces:
org.springframework.security.web.authentication.AuthenticationFailureHandler
public class SpringAddonsOauth2AuthenticationFailureHandler
extends Object
implements org.springframework.security.web.authentication.AuthenticationFailureHandler
An authentication failure handler reading post-login failure URI in session (set by the frontend with a header or request param when
initiating the authorization_code flow) and using a
SpringAddonsOauth2RedirectStrategy- Author:
- Jerome Wacongne ch4mp@c4-soft.com
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSpringAddonsOauth2AuthenticationFailureHandler(SpringAddonsOidcProperties addonsProperties) -
Method Summary
Modifier and TypeMethodDescriptionvoidonAuthenticationFailure(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception)
-
Constructor Details
-
SpringAddonsOauth2AuthenticationFailureHandler
-
-
Method Details
-
onAuthenticationFailure
public void onAuthenticationFailure(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception) throws IOException, jakarta.servlet.ServletException - Specified by:
onAuthenticationFailurein interfaceorg.springframework.security.web.authentication.AuthenticationFailureHandler- Throws:
IOExceptionjakarta.servlet.ServletException
-