Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
datax-cloud
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
黄营
datax-cloud
Commits
2a1ac326
Commit
2a1ac326
authored
Nov 04, 2020
by
yuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
项目初始化
parent
ba14650a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
AuthorizationServerConfig.java
.../java/cn/datax/auth/config/AuthorizationServerConfig.java
+4
-4
No files found.
datax-auth/src/main/java/cn/datax/auth/config/AuthorizationServerConfig.java
View file @
2a1ac326
...
@@ -108,10 +108,10 @@ public class AuthorizationServerConfig extends AuthorizationServerConfigurerAdap
...
@@ -108,10 +108,10 @@ public class AuthorizationServerConfig extends AuthorizationServerConfigurerAdap
tokenServices
.
setSupportRefreshToken
(
true
);
tokenServices
.
setSupportRefreshToken
(
true
);
tokenServices
.
setClientDetailsService
(
clientDetails
());
tokenServices
.
setClientDetailsService
(
clientDetails
());
tokenServices
.
setTokenEnhancer
(
tokenEnhancer
());
tokenServices
.
setTokenEnhancer
(
tokenEnhancer
());
// token有效期自定义设置,默认12小时
// // token有效期自定义设置,默认12小时 设置为24小时86400
tokenServices
.
setAccessTokenValiditySeconds
(
60
*
60
*
24
*
1
);
//
tokenServices.setAccessTokenValiditySeconds(60 * 60 * 24 * 1);
// refresh_token默认30天
// // refresh_token默认30天 设置为7天604800
tokenServices
.
setRefreshTokenValiditySeconds
(
60
*
60
*
24
*
7
);
//
tokenServices.setRefreshTokenValiditySeconds(60 * 60 * 24 * 7);
return
tokenServices
;
return
tokenServices
;
}
}
...
...
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