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
85fd6d57
Commit
85fd6d57
authored
Nov 20, 2019
by
yuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
项目初始化
parent
446c3293
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
AuthorizationServerConfig.java
.../java/cn/datax/auth/config/AuthorizationServerConfig.java
+1
-1
DataConstant.java
...core/src/main/java/cn/datax/common/core/DataConstant.java
+1
-1
No files found.
datax-auth/src/main/java/cn/datax/auth/config/AuthorizationServerConfig.java
View file @
85fd6d57
...
...
@@ -118,7 +118,7 @@ public class AuthorizationServerConfig extends AuthorizationServerConfigurerAdap
return
(
accessToken
,
authentication
)
->
{
final
Map
<
String
,
Object
>
additionalInfo
=
new
HashMap
<>();
DataUser
user
=
(
DataUser
)
authentication
.
getUserAuthentication
().
getPrincipal
();
additionalInfo
.
put
(
DataConstant
.
UserAdditionalInfo
.
LICENSE
.
getKey
(),
"datax"
);
additionalInfo
.
put
(
DataConstant
.
UserAdditionalInfo
.
LICENSE
.
getKey
(),
DataConstant
.
UserAdditionalInfo
.
LICENSE
.
getVal
()
);
additionalInfo
.
put
(
DataConstant
.
UserAdditionalInfo
.
USERID
.
getKey
(),
user
.
getId
());
additionalInfo
.
put
(
DataConstant
.
UserAdditionalInfo
.
USERNAME
.
getKey
(),
user
.
getUsername
());
additionalInfo
.
put
(
DataConstant
.
UserAdditionalInfo
.
NICKNAME
.
getKey
(),
user
.
getNickname
());
...
...
datax-common/datax-common-core/src/main/java/cn/datax/common/core/DataConstant.java
View file @
85fd6d57
...
...
@@ -54,7 +54,7 @@ public class DataConstant {
* 用户认证返回额外信息
*/
public
enum
UserAdditionalInfo
{
LICENSE
(
"license"
,
"
许可证
"
),
LICENSE
(
"license"
,
"
datax
"
),
USER
(
"user"
,
"用户"
),
USERID
(
"user_id"
,
"用户ID"
),
USERNAME
(
"username"
,
"用户名"
),
...
...
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