新增callback放行接口
This commit is contained in:
parent
568efd5f0e
commit
5fa7d5feab
@ -74,6 +74,10 @@ public class AppTokenFilter extends GenericFilterBean implements InitializingBea
|
|||||||
* APP路由放行
|
* APP路由放行
|
||||||
*/
|
*/
|
||||||
private static final String URL_RELEASE_APP_ROUTE = "/**/approute/**/**release/**";
|
private static final String URL_RELEASE_APP_ROUTE = "/**/approute/**/**release/**";
|
||||||
|
/**
|
||||||
|
* APP回调
|
||||||
|
*/
|
||||||
|
private static final String URL_CALLBACK_APP = "/**/app/**/**callback/**";
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
|
public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
|
||||||
@ -94,7 +98,8 @@ public class AppTokenFilter extends GenericFilterBean implements InitializingBea
|
|||||||
|| antPathMatcher.match(URL_DOWNLOAD_AVATAR, requestUri)
|
|| antPathMatcher.match(URL_DOWNLOAD_AVATAR, requestUri)
|
||||||
|| antPathMatcher.match(URL_APP_VERSION, requestUri)
|
|| antPathMatcher.match(URL_APP_VERSION, requestUri)
|
||||||
|| antPathMatcher.match(URL_RELEASE_APP, requestUri)
|
|| antPathMatcher.match(URL_RELEASE_APP, requestUri)
|
||||||
|| antPathMatcher.match(URL_RELEASE_APP_ROUTE, requestUri);
|
|| antPathMatcher.match(URL_RELEASE_APP_ROUTE, requestUri)
|
||||||
|
|| antPathMatcher.match(URL_CALLBACK_APP, requestUri);
|
||||||
if (matcher) {
|
if (matcher) {
|
||||||
filterChain.doFilter(request, response);
|
filterChain.doFilter(request, response);
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user