Class SpringAddonsOauth2RedirectStrategy
java.lang.Object
com.c4_soft.springaddons.security.oidc.starter.synchronised.client.SpringAddonsOauth2RedirectStrategy
- All Implemented Interfaces:
org.springframework.security.web.RedirectStrategy
- Direct Known Subclasses:
SpringAddonsOidcClientWithLoginBeans.SpringAddonsPreAuthorizationCodeRedirectStrategy
public class SpringAddonsOauth2RedirectStrategy
extends Object
implements org.springframework.security.web.RedirectStrategy
A redirect strategy that might not actually redirect: the HTTP status is taken from
com.c4-soft.springaddons.oidc.client.oauth2-redirect-status property. User-agents will auto
redirect only if the status is in 3xx range. This gives single page and mobile applications a
chance to intercept the redirection and choose to follow the redirection (or not), with which
agent and potentially by clearing some headers.
- Author:
- Jerome Wacongne ch4mp@c4-soft.com
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsendRedirect(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String location)
-
Constructor Details
-
SpringAddonsOauth2RedirectStrategy
public SpringAddonsOauth2RedirectStrategy()
-
-
Method Details
-
sendRedirect
public void sendRedirect(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String location) throws IOException - Specified by:
sendRedirectin interfaceorg.springframework.security.web.RedirectStrategy- Throws:
IOException
-