Class SpringAddonsOauth2AuthenticationSuccessHandler

java.lang.Object
com.c4_soft.springaddons.security.oidc.starter.synchronised.client.SpringAddonsOauth2AuthenticationSuccessHandler
All Implemented Interfaces:
org.springframework.security.web.authentication.AuthenticationSuccessHandler

public class SpringAddonsOauth2AuthenticationSuccessHandler extends Object implements org.springframework.security.web.authentication.AuthenticationSuccessHandler
An authentication success handler reading post-login success 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 Details

    • SpringAddonsOauth2AuthenticationSuccessHandler

      public SpringAddonsOauth2AuthenticationSuccessHandler(SpringAddonsOidcProperties addonsProperties)
  • Method Details

    • onAuthenticationSuccess

      public void onAuthenticationSuccess(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication) throws IOException, jakarta.servlet.ServletException
      Specified by:
      onAuthenticationSuccess in interface org.springframework.security.web.authentication.AuthenticationSuccessHandler
      Throws:
      IOException
      jakarta.servlet.ServletException