Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sh-ds
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
李良停
sh-ds
Commits
6ae903bd
Commit
6ae903bd
authored
Mar 19, 2023
by
喻春霖
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加eduid
parent
d7a6ffb7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
AuthUserInfo.java
...chineseall/eden/authcenter/agent/client/AuthUserInfo.java
+1
-0
ConvertMessageMapToBean.java
.../eden/authcenter/agent/utils/ConvertMessageMapToBean.java
+9
-2
loginsuccess.html
...nter-agent/src/main/resources/templates/loginsuccess.html
+1
-0
No files found.
eden-authcenter-agent/src/main/java/com/chineseall/eden/authcenter/agent/client/AuthUserInfo.java
View file @
6ae903bd
...
@@ -10,6 +10,7 @@ import lombok.Data;
...
@@ -10,6 +10,7 @@ import lombok.Data;
public
class
AuthUserInfo
{
public
class
AuthUserInfo
{
private
String
id
;
//uuid
private
String
id
;
//uuid
private
String
eduId
;
private
String
realName
;
//姓名
private
String
realName
;
//姓名
private
UserType
userType
;
//教师、学生
private
UserType
userType
;
//教师、学生
private
String
source
;
//来源
private
String
source
;
//来源
...
...
eden-authcenter-agent/src/main/java/com/chineseall/eden/authcenter/agent/utils/ConvertMessageMapToBean.java
View file @
6ae903bd
...
@@ -26,10 +26,17 @@ public class ConvertMessageMapToBean {
...
@@ -26,10 +26,17 @@ public class ConvertMessageMapToBean {
});
});
}
}
AuthUserInfo
authUserInfo
=
new
AuthUserInfo
();
AuthUserInfo
authUserInfo
=
new
AuthUserInfo
();
if
(
StringUtils
.
isNotBlank
(
map
.
get
(
"ID"
)))
if
(
StringUtils
.
isNotBlank
(
map
.
get
(
"ID"
)))
{
authUserInfo
.
setId
(
map
.
get
(
"ID"
).
toString
());
authUserInfo
.
setId
(
map
.
get
(
"ID"
).
toString
());
if
(
StringUtils
.
isNotBlank
(
map
.
get
(
"XM"
)))
}
if
(
StringUtils
.
isNotBlank
(
map
.
get
(
"EDUID"
)))
{
authUserInfo
.
setEduId
(
map
.
get
(
"EDUID"
).
toString
());
}
if
(
StringUtils
.
isNotBlank
(
map
.
get
(
"XM"
)))
{
authUserInfo
.
setRealName
(
map
.
get
(
"XM"
).
toString
());
authUserInfo
.
setRealName
(
map
.
get
(
"XM"
).
toString
());
}
if
(
StringUtils
.
isNotBlank
(
map
.
get
(
"ROLE"
)))
{
if
(
StringUtils
.
isNotBlank
(
map
.
get
(
"ROLE"
)))
{
if
(
map
.
get
(
"ROLE"
).
toString
().
equals
(
"1001"
))
if
(
map
.
get
(
"ROLE"
).
toString
().
equals
(
"1001"
))
authUserInfo
.
setUserType
(
UserType
.
STUDENT
);
authUserInfo
.
setUserType
(
UserType
.
STUDENT
);
...
...
eden-authcenter-agent/src/main/resources/templates/loginsuccess.html
View file @
6ae903bd
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
<div
style=
"height: 100%;"
>
<div
style=
"height: 100%;"
>
<form
th:action=
"${successPostUrl}"
method=
"post"
th:object=
"${clientDataInfo}"
>
<form
th:action=
"${successPostUrl}"
method=
"post"
th:object=
"${clientDataInfo}"
>
<input
type=
"hidden"
th:value=
"${clientDataInfo.authUserInfo.id}"
name=
"authUserInfo.id"
/>
<input
type=
"hidden"
th:value=
"${clientDataInfo.authUserInfo.id}"
name=
"authUserInfo.id"
/>
<input
type=
"hidden"
th:value=
"${clientDataInfo.authUserInfo.eduId}"
name=
"authUserInfo.eduId"
/>
<input
type=
"hidden"
th:value=
"${clientDataInfo.authUserInfo.realName}"
name=
"authUserInfo.realName"
/>
<input
type=
"hidden"
th:value=
"${clientDataInfo.authUserInfo.realName}"
name=
"authUserInfo.realName"
/>
<input
type=
"hidden"
th:value=
"${clientDataInfo.authUserInfo.userType}"
name=
"authUserInfo.userType"
/>
<input
type=
"hidden"
th:value=
"${clientDataInfo.authUserInfo.userType}"
name=
"authUserInfo.userType"
/>
<input
type=
"hidden"
th:value=
"${clientDataInfo.authUserInfo.source}"
name=
"authUserInfo.source"
/>
<input
type=
"hidden"
th:value=
"${clientDataInfo.authUserInfo.source}"
name=
"authUserInfo.source"
/>
...
...
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