Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-enterprise-base
Overview
Overview
Details
Activity
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
base_platform_enterprise
gic-enterprise-base
Commits
e674517f
Commit
e674517f
authored
Jun 09, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
免登录调整
parent
64bf0767
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
AuthInterceptor.java
.../java/com/gic/enterprise/interceptor/AuthInterceptor.java
+8
-6
No files found.
gic-enterprise-common/src/main/java/com/gic/enterprise/interceptor/AuthInterceptor.java
View file @
e674517f
...
@@ -60,12 +60,6 @@ public class AuthInterceptor extends HandlerInterceptorAdapter {
...
@@ -60,12 +60,6 @@ public class AuthInterceptor extends HandlerInterceptorAdapter {
String
uri
=
request
.
getRequestURI
();
String
uri
=
request
.
getRequestURI
();
log
.
info
(
"权限拦截token url:{}"
,
uri
);
log
.
info
(
"权限拦截token url:{}"
,
uri
);
HandlerMethod
handler
=
(
HandlerMethod
)
object
;
//免登录接口路由
IgnoreLogin
ignoreLogin
=
handler
.
getMethodAnnotation
(
IgnoreLogin
.
class
);
if
(
null
!=
ignoreLogin
)
{
return
true
;
}
//操作项标志位
//操作项标志位
String
isControl
=
request
.
getHeader
(
"isControl"
);
String
isControl
=
request
.
getHeader
(
"isControl"
);
...
@@ -84,6 +78,14 @@ public class AuthInterceptor extends HandlerInterceptorAdapter {
...
@@ -84,6 +78,14 @@ public class AuthInterceptor extends HandlerInterceptorAdapter {
}
}
request
.
setAttribute
(
"user"
,
userDetail
);
request
.
setAttribute
(
"user"
,
userDetail
);
HandlerMethod
handler
=
(
HandlerMethod
)
object
;
//免登录接口路由
IgnoreLogin
ignoreLogin
=
handler
.
getMethodAnnotation
(
IgnoreLogin
.
class
);
if
(
null
!=
ignoreLogin
)
{
return
true
;
}
//不需要拦截的路径
//不需要拦截的路径
if
(
ignoreUriAfterLoginMap
.
containsKey
(
uri
))
{
if
(
ignoreUriAfterLoginMap
.
containsKey
(
uri
))
{
return
true
;
return
true
;
...
...
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