Class SSOAuthenticationFilter
java.lang.Object
com.flyfish.oauth.common.OAuth2PostAware
com.flyfish.oauth.filter.ClientAwareFilter
com.flyfish.oauth.filter.SSOAuthenticationFilter
- All Implemented Interfaces:
OAuth2SsoInitializeAware, javax.servlet.Filter
拦截器处理器,用于拦截客户端Token校验
注意!需要将此过滤器放到web.xml 最前
- Author:
- wangyu
-
Field Summary
Fields inherited from class OAuth2PostAware
auditingEntryPoint, authenticationEntryPoint, client -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoFilter(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, javax.servlet.FilterChain filterChain) 处理请求,这里存在两个逻辑 检查token有效性(不存在直接跳转到认证) 处理授权码,如果存在授权码,Methods inherited from class ClientAwareFilter
destroy, initMethods inherited from class OAuth2PostAware
setAuditingEntryPoint, setAuthenticationEntryPoint, setClient
-
Constructor Details
-
SSOAuthenticationFilter
public SSOAuthenticationFilter()
-
-
Method Details
-
doFilter
public void doFilter(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, javax.servlet.FilterChain filterChain) throws IOException, javax.servlet.ServletException 处理请求,这里存在两个逻辑 检查token有效性(不存在直接跳转到认证) 处理授权码,如果存在授权码,- Parameters:
servletRequest- 请求servletResponse- 响应filterChain- 过滤器链- Throws:
IOException- 异常javax.servlet.ServletException- 异常
-