Class OAuth2TokenEndpointAuthenticationFilter

  • All Implemented Interfaces:
    javax.servlet.Filter, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, org.springframework.context.EnvironmentAware, org.springframework.core.env.EnvironmentCapable, org.springframework.web.context.ServletContextAware

    public class OAuth2TokenEndpointAuthenticationFilter
    extends org.springframework.web.filter.GenericFilterBean
    Filter intended to run after the OAuth2SessionAuthenticationFilter or BasicAuthenticationFilter for requests against the TokenEndpoint. This ensures that the current authentication is an OAuth2Authentication as required by the TokenEndpoint.
    Author:
    Nick Crum (ncrum)
    • Constructor Detail

      • OAuth2TokenEndpointAuthenticationFilter

        public OAuth2TokenEndpointAuthenticationFilter​(boolean allowRefresh)
      • OAuth2TokenEndpointAuthenticationFilter

        public OAuth2TokenEndpointAuthenticationFilter​(String defaultProcessFilterUrl)
    • Method Detail

      • doFilter

        public void doFilter​(javax.servlet.ServletRequest request,
                             javax.servlet.ServletResponse response,
                             javax.servlet.FilterChain chain)
                      throws IOException,
                             javax.servlet.ServletException
        Throws:
        IOException
        javax.servlet.ServletException