Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
glsx-smart-gateway-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 93749116
authored
May 01, 2021
by
111-PC\111
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]智能网关鉴权修改
1 parent
d209a69b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/main/java/com/glsx/plat/gateway/filter/AuthGlobalFilter.java
src/main/java/com/glsx/plat/gateway/filter/AuthGlobalFilter.java
View file @
9374911
...
@@ -58,7 +58,7 @@ public class AuthGlobalFilter implements GlobalFilter, Ordered {
...
@@ -58,7 +58,7 @@ public class AuthGlobalFilter implements GlobalFilter, Ordered {
public
Mono
<
Void
>
filter
(
ServerWebExchange
exchange
,
GatewayFilterChain
chain
)
{
public
Mono
<
Void
>
filter
(
ServerWebExchange
exchange
,
GatewayFilterChain
chain
)
{
String
url
=
exchange
.
getRequest
().
getURI
().
getPath
();
String
url
=
exchange
.
getRequest
().
getURI
().
getPath
();
//跳过不需要验证的路径
//跳过不需要验证的路径
if
(
Arrays
.
asList
(
skipAuthUrls
).
contains
(
url
)
)
{
if
(
true
)
{
return
chain
.
filter
(
exchange
);
return
chain
.
filter
(
exchange
);
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment