Class OAuth2ClientIdForwardRedirectStrategy
java.lang.Object
org.springframework.security.web.DefaultRedirectStrategy
com.broadleafcommerce.auth.user.session.OAuth2ClientIdForwardRedirectStrategy
- All Implemented Interfaces:
org.springframework.security.web.RedirectStrategy
public class OAuth2ClientIdForwardRedirectStrategy
extends org.springframework.security.web.DefaultRedirectStrategy
- Author:
- Nick Crum (ncrum)
-
Field Summary
Fields inherited from class org.springframework.security.web.DefaultRedirectStrategy
logger
-
Constructor Summary
ConstructorDescriptionOAuth2ClientIdForwardRedirectStrategy
(ContextHelperService contextHelperService) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addAdditionalParams
(org.springframework.web.util.UriComponentsBuilder redirectUriBuilder, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String url) Extension point for use modifying the login failure redirect URL.protected org.springframework.web.util.UriComponentsBuilder
addCommonRedirectParams
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String url) protected ContextHelperService
void
sendRedirect
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String url) Methods inherited from class org.springframework.security.web.DefaultRedirectStrategy
calculateRedirectUrl, isContextRelative, setContextRelative
-
Constructor Details
-
OAuth2ClientIdForwardRedirectStrategy
-
-
Method Details
-
sendRedirect
public void sendRedirect(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String url) throws IOException - Specified by:
sendRedirect
in interfaceorg.springframework.security.web.RedirectStrategy
- Overrides:
sendRedirect
in classorg.springframework.security.web.DefaultRedirectStrategy
- Throws:
IOException
-
addCommonRedirectParams
protected org.springframework.web.util.UriComponentsBuilder addCommonRedirectParams(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String url) -
addAdditionalParams
protected void addAdditionalParams(org.springframework.web.util.UriComponentsBuilder redirectUriBuilder, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String url) Extension point for use modifying the login failure redirect URL. This is useful for adding additional redirect parameters to all login failure redirects.- Parameters:
request
-response
-url
-
-
getContextHelperService
-