Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rs-cloud-platform
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
周健威
rs-cloud-platform
Commits
3a0d6a73
Commit
3a0d6a73
authored
Aug 22, 2024
by
周健威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加数据中心验证代码
parent
018fd815
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletion
+16
-1
RequestTypeConstants.java
...xiaoqi/security/common/constant/RequestTypeConstants.java
+1
-0
AccessGatewayFilter.java
...hub/wxiaoqi/security/gate/filter/AccessGatewayFilter.java
+15
-1
No files found.
ace-common/src/main/java/com/github/wxiaoqi/security/common/constant/RequestTypeConstants.java
View file @
3a0d6a73
...
...
@@ -9,6 +9,7 @@ public class RequestTypeConstants {
public
static
final
String
BASE
=
"BASE"
;
public
static
final
String
APP
=
"APP"
;
public
static
final
String
NOT
=
"NOT"
;
public
static
final
String
WX
=
"WX"
;
}
ace-gate/src/main/java/com/github/wxiaoqi/security/gate/filter/AccessGatewayFilter.java
View file @
3a0d6a73
...
...
@@ -120,7 +120,21 @@ public class AccessGatewayFilter implements GlobalFilter {
//根据头部请求token
HttpRequest
httpRequest
=
HttpRequest
.
get
(
"https://gdxm.upyuns.com/sign/authz/jwt/rest/78917a82-1c86-4020-b86a-3b1b350357e3"
);
// String usercenterResult = HttpUtil.get("https://gdxm.upyuns.com/sign/authz/jwt/rest/78917a82-1c86-4020-b86a-3b1b350357e3");
HttpCookie
strings
=
(
HttpCookie
)
request
.
getCookies
().
get
(
"congress"
);
List
<
String
>
congresss
=
request
.
getHeaders
().
get
(
"Congress"
);
String
congress
=
null
;
if
(
congresss
!=
null
)
{
congress
=
congresss
.
get
(
0
);
}
List
<
String
>
requestTypes
=
request
.
getHeaders
().
get
(
RequestTypeConstants
.
HEADER_KEY
);
String
requestType
=
null
;
if
(
requestTypes
!=
null
)
{
requestType
=
requestTypes
.
get
(
0
);
}
if
(
null
!=
requestType
&&
!
RequestTypeConstants
.
NOT
.
equals
(
requestType
))
{
}
// String authToken = null;
// if (strings != null) {
...
...
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