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 theOAuth2SessionAuthenticationFilter
orBasicAuthenticationFilter
for requests against theTokenEndpoint
. This ensures that the current authentication is anOAuth2Authentication
as required by theTokenEndpoint
.- Author:
- Nick Crum (ncrum)
-
-
Constructor Summary
Constructors Constructor Description OAuth2TokenEndpointAuthenticationFilter(boolean allowRefresh)
OAuth2TokenEndpointAuthenticationFilter(String defaultProcessFilterUrl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
-
-
-
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
-
-