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
f552c987
Commit
f552c987
authored
Oct 13, 2023
by
喻春霖
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed
parent
90cdcf1d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
0 deletions
+10
-0
AuthController.java
...eall/eden/authcenter/agent/controller/AuthController.java
+4
-0
OauthType.java
...com/chineseall/eden/authcenter/agent/oauth/OauthType.java
+3
-0
ds.html
eden-authcenter-agent/src/main/resources/templates/ds.html
+3
-0
No files found.
eden-authcenter-agent/src/main/java/com/chineseall/eden/authcenter/agent/controller/AuthController.java
View file @
f552c987
...
@@ -460,6 +460,10 @@ public class AuthController {
...
@@ -460,6 +460,10 @@ public class AuthController {
// oauth 认证
// oauth 认证
loginUrlBuilder
.
append
(
"oauth2.0/authorize?client_id="
).
append
(
authSource
.
getClientId
());
loginUrlBuilder
.
append
(
"oauth2.0/authorize?client_id="
).
append
(
authSource
.
getClientId
());
loginUrlBuilder
.
append
(
"&state=state&response_type=code"
);
loginUrlBuilder
.
append
(
"&state=state&response_type=code"
);
}
if
(
Objects
.
equals
(
authSource
.
getAuthType
(),
3
)){
// oauth 认证
loginUrlBuilder
.
append
(
"oauth2.0/authorize2?client_id="
).
append
(
authSource
.
getClientId
());
loginUrlBuilder
.
append
(
"&state=state&response_type=code"
);
}
else
if
(
Objects
.
equals
(
authSource
.
getAuthType
(),
2
)){
}
else
if
(
Objects
.
equals
(
authSource
.
getAuthType
(),
2
)){
// idp 认证
// idp 认证
loginUrlBuilder
.
append
(
"login?client_id="
).
append
(
authSource
.
getClientId
());
loginUrlBuilder
.
append
(
"login?client_id="
).
append
(
authSource
.
getClientId
());
...
...
eden-authcenter-agent/src/main/java/com/chineseall/eden/authcenter/agent/oauth/OauthType.java
View file @
f552c987
...
@@ -9,6 +9,9 @@ public enum OauthType {
...
@@ -9,6 +9,9 @@ public enum OauthType {
dianjiaoguan
(
"dianjiaoguan"
,
"电教馆账号认证"
,
"oauth"
),
dianjiaoguan
(
"dianjiaoguan"
,
"电教馆账号认证"
,
"oauth"
),
edenoperation
(
"edenoperation"
,
"数字教材账号认证"
,
"oauth"
),
edenoperation
(
"edenoperation"
,
"数字教材账号认证"
,
"oauth"
),
operation_genius3
(
"operation_genius3"
,
"学习精灵3.0"
,
"oauth_genius3"
),
qpjy
(
"qpjy"
,
"青浦教育"
,
"idp"
),
qpjy
(
"qpjy"
,
"青浦教育"
,
"idp"
),
xhjy
(
"xhjy"
,
"徐汇教育"
,
"idp"
),
xhjy
(
"xhjy"
,
"徐汇教育"
,
"idp"
),
cnjy
(
"cnjy"
,
"长宁教育"
,
"idp"
),
cnjy
(
"cnjy"
,
"长宁教育"
,
"idp"
),
...
...
eden-authcenter-agent/src/main/resources/templates/ds.html
View file @
f552c987
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
/*<![CDATA[*/
/*<![CDATA[*/
var
dianjiaoguanLoinUrl
=
[[
$
{
dianjiaoguanLoginUrl
}]];
var
dianjiaoguanLoinUrl
=
[[
$
{
dianjiaoguanLoginUrl
}]];
var
edenoperationLoginUrl
=
[[
$
{
edenoperationLoginUrl
}]];
var
edenoperationLoginUrl
=
[[
$
{
edenoperationLoginUrl
}]];
var
operation_genius3LoginUrl
=
[[
$
{
operation_genius3LoginUrl
}]];
var
logId
=
[[
$
{
logId
}]];
var
logId
=
[[
$
{
logId
}]];
var
loginType
=
[[
$
{
loginType
}]];
var
loginType
=
[[
$
{
loginType
}]];
var
ctxPath
=
/*[[@{/}]]*/
''
;
var
ctxPath
=
/*[[@{/}]]*/
''
;
...
@@ -40,6 +41,8 @@
...
@@ -40,6 +41,8 @@
window
.
location
.
href
=
baseUrl
+
"dianjiaoguan&loginUrl="
+
encodeURIComponent
(
dianjiaoguanLoinUrl
)
+
"&browser="
+
info
.
browser
+
"&device="
+
info
.
device
+
"&os="
+
info
.
os
+
"&version="
+
info
.
version
;
window
.
location
.
href
=
baseUrl
+
"dianjiaoguan&loginUrl="
+
encodeURIComponent
(
dianjiaoguanLoinUrl
)
+
"&browser="
+
info
.
browser
+
"&device="
+
info
.
device
+
"&os="
+
info
.
os
+
"&version="
+
info
.
version
;
}
else
if
(
idp
==
"edenoperation"
)
{
}
else
if
(
idp
==
"edenoperation"
)
{
window
.
location
.
href
=
baseUrl
+
"edenoperation&loginUrl="
+
encodeURIComponent
(
edenoperationLoginUrl
)
+
"&browser="
+
info
.
browser
+
"&device="
+
info
.
device
+
"&os="
+
info
.
os
+
"&version="
+
info
.
version
;
window
.
location
.
href
=
baseUrl
+
"edenoperation&loginUrl="
+
encodeURIComponent
(
edenoperationLoginUrl
)
+
"&browser="
+
info
.
browser
+
"&device="
+
info
.
device
+
"&os="
+
info
.
os
+
"&version="
+
info
.
version
;
}
else
if
(
idp
==
"operation_genius3"
)
{
window
.
location
.
href
=
baseUrl
+
"operation_genius3&loginUrl="
+
encodeURIComponent
(
operation_genius3LoginUrl
)
+
"&browser="
+
info
.
browser
+
"&device="
+
info
.
device
+
"&os="
+
info
.
os
+
"&version="
+
info
.
version
;
}
else
{
}
else
{
window
.
location
.
href
=
baseUrl
+
idp
+
"&loginUrl="
+
encodeURIComponent
(
idpList
[
idp
]
+
"&auth_source="
+
idp
)
+
"&browser="
+
info
.
browser
+
"&device="
+
info
.
device
+
"&os="
+
info
.
os
+
"&version="
+
info
.
version
;
window
.
location
.
href
=
baseUrl
+
idp
+
"&loginUrl="
+
encodeURIComponent
(
idpList
[
idp
]
+
"&auth_source="
+
idp
)
+
"&browser="
+
info
.
browser
+
"&device="
+
info
.
device
+
"&os="
+
info
.
os
+
"&version="
+
info
.
version
;
}
}
...
...
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