Class 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void addAdditionalParams​(org.springframework.web.util.UriComponentsBuilder redirectUriBuilder, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String url)
      Extension point for use modifying the login failure redirect URL.
      protected org.springframework.web.util.UriComponentsBuilder addCommonRedirectParams​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String url)  
      void sendRedirect​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String url)  
      • Methods inherited from class org.springframework.security.web.DefaultRedirectStrategy

        calculateRedirectUrl, isContextRelative, setContextRelative
    • Constructor Detail

      • OAuth2ClientIdForwardRedirectStrategy

        public OAuth2ClientIdForwardRedirectStrategy()
    • Method Detail

      • sendRedirect

        public void sendRedirect​(javax.servlet.http.HttpServletRequest request,
                                 javax.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​(javax.servlet.http.HttpServletRequest request,
                                                                                            javax.servlet.http.HttpServletResponse response,
                                                                                            String url)
      • addAdditionalParams

        protected void addAdditionalParams​(org.springframework.web.util.UriComponentsBuilder redirectUriBuilder,
                                           javax.servlet.http.HttpServletRequest request,
                                           javax.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 -