记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董敬伟
liquidnet-bus-v1
Commits
2982d798
Commit
2982d798
authored
Jun 08, 2021
by
张国柄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zull auth filter skip kylin station-验票redis校验(redis.db库不同);
parent
04de239e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
GlobalAuthFilter.java
...a/com/liquidnet/support/zuul/filter/GlobalAuthFilter.java
+7
-7
No files found.
liquidnet-bus-support/liquidnet-support-zuul/src/main/java/com/liquidnet/support/zuul/filter/GlobalAuthFilter.java
View file @
2982d798
...
@@ -122,14 +122,14 @@ public class GlobalAuthFilter extends ZuulFilter {
...
@@ -122,14 +122,14 @@ public class GlobalAuthFilter extends ZuulFilter {
}
}
if
(
PathMatchUtil
.
isPathMatch
(
KYLIN_STATION_JWT_VALID
,
ctx
.
getRequest
().
getRequestURI
()))
{
// 专业版APP
if
(
PathMatchUtil
.
isPathMatch
(
KYLIN_STATION_JWT_VALID
,
ctx
.
getRequest
().
getRequestURI
()))
{
// 专业版APP
// adam:identity:sso:${uid}:MD5(${token})=${1-在线|0-离线}
// adam:identity:sso:${uid}:MD5(${token})=${1-在线|0-离线}
String
ssoUidM5TokenKey
=
jwtValidator
.
getSsoRedisKey
()
//
String ssoUidM5TokenKey = jwtValidator.getSsoRedisKey()
.
concat
(
uid
).
concat
(
":"
).
concat
(
DigestUtils
.
md5DigestAsHex
(
uToken
.
getBytes
(
StandardCharsets
.
UTF_8
)));
//
.concat(uid).concat(":").concat(DigestUtils.md5DigestAsHex(uToken.getBytes(StandardCharsets.UTF_8)));
Integer
online
=
(
Integer
)
redisUtil
.
get
(
ssoUidM5TokenKey
);
//
Integer online = (Integer) redisUtil.get(ssoUidM5TokenKey);
if
(
null
==
online
||
online
!=
1
)
{
//
if (null == online || online != 1) {
this
.
respHandler
(
ctx
,
TOKEN_INVALID
);
//
this.respHandler(ctx, TOKEN_INVALID);
}
else
{
//
} else {
ctx
.
setSendZuulResponse
(
true
);
ctx
.
setSendZuulResponse
(
true
);
}
//
}
}
else
{
}
else
{
// adam:identity:sso:${uid}=MD5(${token})
// adam:identity:sso:${uid}=MD5(${token})
String
ssoKey
=
jwtValidator
.
getSsoRedisKey
().
concat
(
uid
);
String
ssoKey
=
jwtValidator
.
getSsoRedisKey
().
concat
(
uid
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment