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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    protected org.springframework.web.util.UriComponentsBuilder
    addCommonRedirectParams(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String url)
     
     
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OAuth2ClientIdForwardRedirectStrategy

      public OAuth2ClientIdForwardRedirectStrategy(ContextHelperService contextHelperService)
  • Method Details

    • sendRedirect

      public void sendRedirect(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String url) throws IOException
      Specified by:
      sendRedirect in interface org.springframework.security.web.RedirectStrategy
      Overrides:
      sendRedirect in class org.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

      protected ContextHelperService getContextHelperService()