Class OAuth2TokenEndpointAuthenticationFilter

java.lang.Object
org.springframework.web.filter.GenericFilterBean
com.broadleafcommerce.auth.user.session.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)
  • Field Summary

    Fields inherited from class org.springframework.web.filter.GenericFilterBean

    logger
  • Constructor Summary

    Constructors
    Constructor
    Description
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
     

    Methods inherited from class org.springframework.web.filter.GenericFilterBean

    addRequiredProperty, afterPropertiesSet, createEnvironment, destroy, getEnvironment, getFilterConfig, getFilterName, getServletContext, init, initBeanWrapper, initFilterBean, setBeanName, setEnvironment, setServletContext

    Methods inherited from class java.lang.Object

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

    • OAuth2TokenEndpointAuthenticationFilter

      public OAuth2TokenEndpointAuthenticationFilter(boolean allowRefresh)
    • OAuth2TokenEndpointAuthenticationFilter

      public OAuth2TokenEndpointAuthenticationFilter(String defaultProcessFilterUrl)
  • Method Details

    • 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