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
3eba272e
Commit
3eba272e
authored
Jun 03, 2021
by
喻春霖
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed
parent
32902eb3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
0 deletions
+25
-0
AuthController.java
...eall/eden/authcenter/agent/controller/AuthController.java
+10
-0
application.yml
eden-authcenter-agent/src/main/resources/application.yml
+9
-0
bootstrap.yml
eden-authcenter-agent/src/main/resources/bootstrap.yml
+6
-0
No files found.
eden-authcenter-agent/src/main/java/com/chineseall/eden/authcenter/agent/controller/AuthController.java
View file @
3eba272e
...
@@ -62,6 +62,7 @@ public class AuthController {
...
@@ -62,6 +62,7 @@ public class AuthController {
String
clientId
=
request
.
getParameter
(
"client_id"
);
String
clientId
=
request
.
getParameter
(
"client_id"
);
String
returnUrl
=
request
.
getParameter
(
"redirect_uri"
);
String
returnUrl
=
request
.
getParameter
(
"redirect_uri"
);
String
business_client
=
request
.
getParameter
(
"business_client"
);
AuthLog
authLog
=
new
AuthLog
();
AuthLog
authLog
=
new
AuthLog
();
authLog
.
setLogType
(
LogType
.
login
);
authLog
.
setLogType
(
LogType
.
login
);
if
(
StringUtils
.
isNotEmpty
(
clientId
)){
if
(
StringUtils
.
isNotEmpty
(
clientId
)){
...
@@ -95,6 +96,15 @@ public class AuthController {
...
@@ -95,6 +96,15 @@ public class AuthController {
ClientItem
item
=
clientItemMap
.
get
(
"readingroomClientId"
);
ClientItem
item
=
clientItemMap
.
get
(
"readingroomClientId"
);
authLog
.
setClientId
(
"readingroomClientId"
);
authLog
.
setClientId
(
"readingroomClientId"
);
authLog
.
setAuthSource
(
item
.
getClientName
());
authLog
.
setAuthSource
(
item
.
getClientName
());
}
else
if
(
"cloudcourse"
.
equals
(
business_client
)
||
"cloudcourse-test"
.
equals
(
business_client
)){
ClientItem
item
=
clientItemMap
.
get
(
"cloudcourse"
);
authLog
.
setClientId
(
"cloudcourse"
);
authLog
.
setAuthSource
(
item
.
getClientName
());
}
else
if
(
"adaptive-learning"
.
equals
(
business_client
)){
ClientItem
item
=
clientItemMap
.
get
(
"adaptive-learning"
);
authLog
.
setClientId
(
"adaptive-learning"
);
authLog
.
setAuthSource
(
item
.
getClientName
());
}
}
OauthType
oauthType
=
OauthType
.
getValue
(
loginType
);
OauthType
oauthType
=
OauthType
.
getValue
(
loginType
);
...
...
eden-authcenter-agent/src/main/resources/application.yml
View file @
3eba272e
...
@@ -63,3 +63,12 @@ oauthclient:
...
@@ -63,3 +63,12 @@ oauthclient:
-
clientName
:
阅览室
-
clientName
:
阅览室
clientId
:
readingroomClientId
clientId
:
readingroomClientId
clientSecret
:
readingroomClientSecret
clientSecret
:
readingroomClientSecret
-
clientName
:
空中课堂
clientId
:
cloudcourse
clientSecret
:
cloudcourseSecret
-
clientName
:
自适应学习
clientId
:
adaptive-learning
clientSecret
:
adaptive-learningSecret
eden-authcenter-agent/src/main/resources/bootstrap.yml
View file @
3eba272e
...
@@ -63,3 +63,9 @@ oauthclient:
...
@@ -63,3 +63,9 @@ oauthclient:
-
clientName
:
阅览室
-
clientName
:
阅览室
clientId
:
readingroomClientId
clientId
:
readingroomClientId
clientSecret
:
readingroomClientSecret
clientSecret
:
readingroomClientSecret
-
clientName
:
空中课堂
clientId
:
cloudcourse
clientSecret
:
cloudcourseSecret
-
clientName
:
自适应学习
clientId
:
adaptive-learning
clientSecret
:
adaptive-learningSecret
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