public class CustomOauth2Expersionn
extends java.lang.Object
| Constructor and Description |
|---|
CustomOauth2Expersionn(org.springframework.security.core.Authentication authentication) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isPass(org.springframework.security.core.Authentication authentication,
javax.servlet.http.HttpServletRequest request)
oauth访问过滤,包含对web用户的过滤和对客户端接口用户的过滤
|
boolean |
noFilterMatch(org.springframework.security.core.Authentication authentication,
javax.servlet.http.HttpServletRequest request)
不需要过滤的请求和文件,此处实现永真返回true,只是为了记录访问日志,spring security的配置规则是按配置顺序优先,不过滤的必须先配,这样这些文件和路径就不会皱上面的过滤方法,尽管在config类设置了统配
|
public CustomOauth2Expersionn(org.springframework.security.core.Authentication authentication)
public boolean isPass(org.springframework.security.core.Authentication authentication,
javax.servlet.http.HttpServletRequest request)
authentication - request - public boolean noFilterMatch(org.springframework.security.core.Authentication authentication,
javax.servlet.http.HttpServletRequest request)
authentication - request -