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
f15caf2f
Commit
f15caf2f
authored
Jul 07, 2021
by
喻春霖
Browse files
Options
Browse Files
Download
Plain Diff
fixed
parents
e0d0f172
ba0ebbc2
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
948 additions
and
698 deletions
+948
-698
settings.json
.vscode/settings.json
+3
-0
AuthController.java
...eall/eden/authcenter/agent/controller/AuthController.java
+14
-7
OauthType.java
...com/chineseall/eden/authcenter/agent/oauth/OauthType.java
+30
-10
application.yml
eden-authcenter-agent/src/main/resources/application.yml
+113
-9
bootstrap.yml
eden-authcenter-agent/src/main/resources/bootstrap.yml
+107
-0
ds.html
eden-authcenter-agent/src/main/resources/templates/ds.html
+37
-28
statistics.html
...center-agent/src/main/resources/templates/statistics.html
+644
-644
No files found.
.vscode/settings.json
0 → 100644
View file @
f15caf2f
{
"liveServer.settings.port"
:
5501
}
\ No newline at end of file
eden-authcenter-agent/src/main/java/com/chineseall/eden/authcenter/agent/controller/AuthController.java
View file @
f15caf2f
...
...
@@ -120,14 +120,21 @@ public class AuthController {
authLogService
.
save
(
authLog
);
String
url1
=
generateLoginUrl
(
returnUrl
,
OauthType
.
dianjiaoguan
.
getCode
(),
authLog
.
getId
());
modelAndView
.
addObject
(
"loginUrl1"
,
url1
);
String
url2
=
generateLoginUrl
(
returnUrl
,
OauthType
.
edenoperation
.
getCode
(),
authLog
.
getId
());
modelAndView
.
addObject
(
"loginUrl2"
,
url2
);
String
url3
=
generateSpLoginUrl
(
returnUrl
,
OauthType
.
qpjy
.
getCode
(),
authLog
.
getId
());
modelAndView
.
addObject
(
"loginUrl3"
,
url3
);
modelAndView
.
addObject
(
"logId"
,
authLog
.
getId
());
String
dianjiaoguanLoinUrl
=
generateLoginUrl
(
returnUrl
,
OauthType
.
dianjiaoguan
.
getCode
(),
authLog
.
getId
());
modelAndView
.
addObject
(
"dianjiaoguanLoinUrl"
,
dianjiaoguanLoinUrl
);
String
edenoperationLoginUrl
=
generateLoginUrl
(
returnUrl
,
OauthType
.
edenoperation
.
getCode
(),
authLog
.
getId
());
modelAndView
.
addObject
(
"edenoperationLoginUrl"
,
edenoperationLoginUrl
);
OauthType
[]
oauthTypes
=
OauthType
.
values
();
for
(
OauthType
oauthType
:
oauthTypes
)
{
if
(
"idp"
.
equals
(
oauthType
.
getType
())){
String
idpAuthTypeUrl
=
generateSpLoginUrl
(
returnUrl
,
oauthType
.
getCode
(),
authLog
.
getId
());
modelAndView
.
addObject
(
oauthType
.
getCode
()+
"LoginUrl"
,
idpAuthTypeUrl
);
}
}
modelAndView
.
addObject
(
"logId"
,
authLog
.
getId
());
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
modelAndView
.
setViewName
(
"error"
);
...
...
eden-authcenter-agent/src/main/java/com/chineseall/eden/authcenter/agent/oauth/OauthType.java
View file @
f15caf2f
...
...
@@ -2,17 +2,30 @@ package com.chineseall.eden.authcenter.agent.oauth;
import
lombok.Getter
;
import
java.util.List
;
public
enum
OauthType
{
dianjiaoguan
(
"dianjiaoguan"
,
"电教馆账号认证"
),
idp
(
"idp"
,
"idp认证"
),
jsyd
(
"jsyd"
,
"金山教育"
),
qpjy
(
"qpjy"
,
"青浦教育"
),
hpjy
(
"hpjy"
,
"黄浦教育"
),
fxjy
(
"fxjy"
,
"奉贤教育"
),
pdjy
(
"pdjy"
,
"浦东教育"
),
ypjy
(
"ypjy"
,
"杨浦教育"
),
edenoperation
(
"edenoperation"
,
"数字教材账号认证"
);
dianjiaoguan
(
"dianjiaoguan"
,
"电教馆账号认证"
,
"oauth"
),
edenoperation
(
"edenoperation"
,
"数字教材账号认证"
,
"oauth"
),
qpjy
(
"qpjy"
,
"青浦教育"
,
"idp"
),
xhjy
(
"xhjy"
,
"徐汇教育"
,
"idp"
),
cnjy
(
"cnjy"
,
"长宁教育"
,
"idp"
),
jajy
(
"jajy"
,
"静安教育"
,
"idp"
),
ptjy
(
"ptjy"
,
"普陀教育"
,
"idp"
),
hkjy
(
"hkjy"
,
"虹口教育"
,
"idp"
),
mhjy
(
"mhjy"
,
"闵行教育"
,
"idp"
),
bsjy
(
"bsjy"
,
"宝山教育"
,
"idp"
),
jdjy
(
"jdjy"
,
"嘉定教育"
,
"idp"
),
jsjy
(
"jsjy"
,
"金山教育"
,
"idp"
),
sjjy
(
"sjjy"
,
"松江教育"
,
"idp"
),
fxjy
(
"fxjy"
,
"奉贤教育"
,
"idp"
),
cmjy
(
"cmjy"
,
"崇明教育"
,
"idp"
),
hpjy
(
"hpjy"
,
"黄浦教育"
,
"idp"
),
pdjy
(
"pdjy"
,
"浦东教育"
,
"idp"
),
ypjy
(
"ypjy"
,
"杨浦教育"
,
"idp"
);
@Getter
...
...
@@ -20,9 +33,16 @@ public enum OauthType {
@Getter
private
final
String
description
;
OauthType
(
String
code
,
String
description
)
{
@Getter
private
final
String
type
;
OauthType
(
String
code
,
String
description
,
String
type
)
{
this
.
code
=
code
;
this
.
description
=
description
;
this
.
type
=
type
;
}
public
static
OauthType
getValue
(
String
name
)
{
...
...
eden-authcenter-agent/src/main/resources/application.yml
View file @
f15caf2f
...
...
@@ -27,9 +27,9 @@ spring:
oauth
:
items
:
dianjiaoguan
:
#电教馆
# oauthUrl: https://castest.edu.sh.cn/CAS
# clientId: testClentId
# clientSecret: testClientSecret
# oauthUrl: https://castest.edu.sh.cn/CAS
# clientId: testClentId
# clientSecret: testClientSecret
oauthUrl
:
https://cas2.edu.sh.cn/CAS
clientId
:
clientid
clientSecret
:
clientSecret
...
...
@@ -49,14 +49,121 @@ oauth:
clientSecret
:
VjyqUkkM5Znu
loginSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/idp/loginsuccess
logoutSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/logoutsuccess
cmjy
:
#idp
#oauthUrl: https://operator-api-test.etextbook.cn/cas
oauthUrl
:
https://sp.etextbook.cn/authcenter/auth
clientId
:
dsClentId
clientSecret
:
VjyqUkkM5Znu
loginSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/idp/loginsuccess
logoutSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/logoutsuccess
fxjy
:
#idp
#oauthUrl: https://operator-api-test.etextbook.cn/cas
oauthUrl
:
https://sp.etextbook.cn/authcenter/auth
clientId
:
dsClentId
clientSecret
:
VjyqUkkM5Znu
loginSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/idp/loginsuccess
logoutSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/logoutsuccess
sjjy
:
#idp
#oauthUrl: https://operator-api-test.etextbook.cn/cas
oauthUrl
:
https://sp.etextbook.cn/authcenter/auth
clientId
:
dsClentId
clientSecret
:
VjyqUkkM5Znu
loginSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/idp/loginsuccess
logoutSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/logoutsuccess
jsjy
:
#idp
#oauthUrl: https://operator-api-test.etextbook.cn/cas
oauthUrl
:
https://sp.etextbook.cn/authcenter/auth
clientId
:
dsClentId
clientSecret
:
VjyqUkkM5Znu
loginSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/idp/loginsuccess
logoutSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/logoutsuccess
jdjy
:
#idp
#oauthUrl: https://operator-api-test.etextbook.cn/cas
oauthUrl
:
https://sp.etextbook.cn/authcenter/auth
clientId
:
dsClentId
clientSecret
:
VjyqUkkM5Znu
loginSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/idp/loginsuccess
logoutSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/logoutsuccess
bsjy
:
#idp
#oauthUrl: https://operator-api-test.etextbook.cn/cas
oauthUrl
:
https://sp.etextbook.cn/authcenter/auth
clientId
:
dsClentId
clientSecret
:
VjyqUkkM5Znu
loginSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/idp/loginsuccess
logoutSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/logoutsuccess
mhjy
:
#idp
#oauthUrl: https://operator-api-test.etextbook.cn/cas
oauthUrl
:
https://sp.etextbook.cn/authcenter/auth
clientId
:
dsClentId
clientSecret
:
VjyqUkkM5Znu
loginSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/idp/loginsuccess
logoutSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/logoutsuccess
pdjy
:
#idp
#oauthUrl: https://operator-api-test.etextbook.cn/cas
oauthUrl
:
https://sp.etextbook.cn/authcenter/auth
clientId
:
dsClentId
clientSecret
:
VjyqUkkM5Znu
loginSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/idp/loginsuccess
logoutSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/logoutsuccess
ypjy
:
#idp
#oauthUrl: https://operator-api-test.etextbook.cn/cas
oauthUrl
:
https://sp.etextbook.cn/authcenter/auth
clientId
:
dsClentId
clientSecret
:
VjyqUkkM5Znu
loginSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/idp/loginsuccess
logoutSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/logoutsuccess
hkjy
:
#idp
#oauthUrl: https://operator-api-test.etextbook.cn/cas
oauthUrl
:
https://sp.etextbook.cn/authcenter/auth
clientId
:
dsClentId
clientSecret
:
VjyqUkkM5Znu
loginSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/idp/loginsuccess
logoutSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/logoutsuccess
ptjy
:
#idp
#oauthUrl: https://operator-api-test.etextbook.cn/cas
oauthUrl
:
https://sp.etextbook.cn/authcenter/auth
clientId
:
dsClentId
clientSecret
:
VjyqUkkM5Znu
loginSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/idp/loginsuccess
logoutSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/logoutsuccess
jajy
:
#idp
#oauthUrl: https://operator-api-test.etextbook.cn/cas
oauthUrl
:
https://sp.etextbook.cn/authcenter/auth
clientId
:
dsClentId
clientSecret
:
VjyqUkkM5Znu
loginSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/idp/loginsuccess
logoutSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/logoutsuccess
cnjy
:
#idp
#oauthUrl: https://operator-api-test.etextbook.cn/cas
oauthUrl
:
https://sp.etextbook.cn/authcenter/auth
clientId
:
dsClentId
clientSecret
:
VjyqUkkM5Znu
loginSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/idp/loginsuccess
logoutSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/logoutsuccess
xhjy
:
#idp
#oauthUrl: https://operator-api-test.etextbook.cn/cas
oauthUrl
:
https://sp.etextbook.cn/authcenter/auth
clientId
:
dsClentId
clientSecret
:
VjyqUkkM5Znu
loginSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/idp/loginsuccess
logoutSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/logoutsuccess
hpjy
:
#idp
#oauthUrl: https://operator-api-test.etextbook.cn/cas
oauthUrl
:
https://sp.etextbook.cn/authcenter/auth
clientId
:
dsClentId
clientSecret
:
VjyqUkkM5Znu
loginSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/idp/loginsuccess
logoutSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/logoutsuccess
oauthclient
:
clients
:
-
clientName
:
数字教材
clientId
:
testClentId
clientSecret
:
testClientSecret
# - clientName: 接入样例
# clientId: testClentId2
# clientSecret: testClientSecret2
# - clientName: 接入样例
# clientId: testClentId2
# clientSecret: testClientSecret2
-
clientName
:
资源评价系统
clientId
:
xhzyClientId
clientSecret
:
xhzyClientSecret
...
...
@@ -69,6 +176,3 @@ oauthclient:
-
clientName
:
自适应学习
clientId
:
adaptive-learning
clientSecret
:
adaptive-learningSecret
eden-authcenter-agent/src/main/resources/bootstrap.yml
View file @
f15caf2f
...
...
@@ -49,6 +49,113 @@ oauth:
clientSecret
:
VjyqUkkM5Znu
loginSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/idp/loginsuccess
logoutSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/logoutsuccess
cmjy
:
#idp
#oauthUrl: https://operator-api-test.etextbook.cn/cas
oauthUrl
:
https://sp.etextbook.cn/authcenter/auth
clientId
:
dsClentId
clientSecret
:
VjyqUkkM5Znu
loginSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/idp/loginsuccess
logoutSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/logoutsuccess
fxjy
:
#idp
#oauthUrl: https://operator-api-test.etextbook.cn/cas
oauthUrl
:
https://sp.etextbook.cn/authcenter/auth
clientId
:
dsClentId
clientSecret
:
VjyqUkkM5Znu
loginSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/idp/loginsuccess
logoutSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/logoutsuccess
sjjy
:
#idp
#oauthUrl: https://operator-api-test.etextbook.cn/cas
oauthUrl
:
https://sp.etextbook.cn/authcenter/auth
clientId
:
dsClentId
clientSecret
:
VjyqUkkM5Znu
loginSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/idp/loginsuccess
logoutSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/logoutsuccess
jsjy
:
#idp
#oauthUrl: https://operator-api-test.etextbook.cn/cas
oauthUrl
:
https://sp.etextbook.cn/authcenter/auth
clientId
:
dsClentId
clientSecret
:
VjyqUkkM5Znu
loginSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/idp/loginsuccess
logoutSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/logoutsuccess
jdjy
:
#idp
#oauthUrl: https://operator-api-test.etextbook.cn/cas
oauthUrl
:
https://sp.etextbook.cn/authcenter/auth
clientId
:
dsClentId
clientSecret
:
VjyqUkkM5Znu
loginSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/idp/loginsuccess
logoutSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/logoutsuccess
bsjy
:
#idp
#oauthUrl: https://operator-api-test.etextbook.cn/cas
oauthUrl
:
https://sp.etextbook.cn/authcenter/auth
clientId
:
dsClentId
clientSecret
:
VjyqUkkM5Znu
loginSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/idp/loginsuccess
logoutSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/logoutsuccess
mhjy
:
#idp
#oauthUrl: https://operator-api-test.etextbook.cn/cas
oauthUrl
:
https://sp.etextbook.cn/authcenter/auth
clientId
:
dsClentId
clientSecret
:
VjyqUkkM5Znu
loginSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/idp/loginsuccess
logoutSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/logoutsuccess
pdjy
:
#idp
#oauthUrl: https://operator-api-test.etextbook.cn/cas
oauthUrl
:
https://sp.etextbook.cn/authcenter/auth
clientId
:
dsClentId
clientSecret
:
VjyqUkkM5Znu
loginSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/idp/loginsuccess
logoutSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/logoutsuccess
ypjy
:
#idp
#oauthUrl: https://operator-api-test.etextbook.cn/cas
oauthUrl
:
https://sp.etextbook.cn/authcenter/auth
clientId
:
dsClentId
clientSecret
:
VjyqUkkM5Znu
loginSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/idp/loginsuccess
logoutSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/logoutsuccess
hkjy
:
#idp
#oauthUrl: https://operator-api-test.etextbook.cn/cas
oauthUrl
:
https://sp.etextbook.cn/authcenter/auth
clientId
:
dsClentId
clientSecret
:
VjyqUkkM5Znu
loginSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/idp/loginsuccess
logoutSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/logoutsuccess
ptjy
:
#idp
#oauthUrl: https://operator-api-test.etextbook.cn/cas
oauthUrl
:
https://sp.etextbook.cn/authcenter/auth
clientId
:
dsClentId
clientSecret
:
VjyqUkkM5Znu
loginSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/idp/loginsuccess
logoutSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/logoutsuccess
jajy
:
#idp
#oauthUrl: https://operator-api-test.etextbook.cn/cas
oauthUrl
:
https://sp.etextbook.cn/authcenter/auth
clientId
:
dsClentId
clientSecret
:
VjyqUkkM5Znu
loginSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/idp/loginsuccess
logoutSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/logoutsuccess
cnjy
:
#idp
#oauthUrl: https://operator-api-test.etextbook.cn/cas
oauthUrl
:
https://sp.etextbook.cn/authcenter/auth
clientId
:
dsClentId
clientSecret
:
VjyqUkkM5Znu
loginSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/idp/loginsuccess
logoutSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/logoutsuccess
xhjy
:
#idp
#oauthUrl: https://operator-api-test.etextbook.cn/cas
oauthUrl
:
https://sp.etextbook.cn/authcenter/auth
clientId
:
dsClentId
clientSecret
:
VjyqUkkM5Znu
loginSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/idp/loginsuccess
logoutSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/logoutsuccess
hpjy
:
#idp
#oauthUrl: https://operator-api-test.etextbook.cn/cas
oauthUrl
:
https://sp.etextbook.cn/authcenter/auth
clientId
:
dsClentId
clientSecret
:
VjyqUkkM5Znu
loginSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/idp/loginsuccess
logoutSuccessUrl
:
https://ds.etextbook.cn/authcenter/auth/logoutsuccess
oauthclient
:
clients
:
-
clientName
:
数字教材
...
...
eden-authcenter-agent/src/main/resources/templates/ds.html
View file @
f15caf2f
...
...
@@ -9,21 +9,39 @@
<script
type=
"text/javascript"
th:src=
"@{/static/js/browser.js}"
></script>
<script
th:inline=
"javascript"
>
/*<![CDATA[*/
var
loginUrl1
=
[[
$
{
loginUrl1
}]];
var
loginUrl2
=
[[
$
{
loginUrl2
}]];
var
loginUrl3
=
[[
$
{
loginUrl3
}]];
var
dianjiaoguanLoinUrl
=
[[
$
{
dianjiaoguanLoinUrl
}]];
var
edenoperationLoginUrl
=
[[
$
{
edenoperationLoginUrl
}]];
var
logId
=
[[
$
{
logId
}]];
var
loginType
=
[[
$
{
loginType
}]];
var
ctxPath
=
/*[[@{/}]]*/
''
;
var
idpList
=
{
qpjy
:
[[
$
{
qpjyLoginUrl
}]],
hpjy
:
[[
$
{
hpjyLoginUrl
}]],
xhjy
:
[[
$
{
xhjyLoginUrl
}]],
cnjy
:
[[
$
{
cnjyLoginUrl
}]],
ptjy
:
[[
$
{
ptjyLoginUrl
}]],
hkjy
:
[[
$
{
hkjyLoginUrl
}]],
ypjy
:
[[
$
{
ypjyLoginUrl
}]],
pdjy
:
[[
$
{
pdjyLoginUrl
}]],
mhjy
:
[[
$
{
mhjyLoginUrl
}]],
bsjy
:
[[
$
{
bsjyLoginUrl
}]],
jsjy
:
[[
$
{
jsjyLoginUrl
}]],
sjjy
:
[[
$
{
sjjyLoginUrl
}]],
fxjy
:
[[
$
{
fxjyLoginUrl
}]],
cmjy
:
[[
$
{
cmjyLoginUrl
}]],
jajy
:
[[
$
{
jajyLoginUrl
}]],
jdjy
:
[[
$
{
jdjyLoginUrl
}]],
}
function
toLogin
(
idp
)
{
var
info
=
new
Browser
();
var
baseUrl
=
ctxPath
+
"auth/tologin?logId="
+
logId
+
"&oauthType="
;
if
(
idp
==
"dianjiaoguan"
)
{
window
.
location
.
href
=
baseUrl
+
"dianjiaoguan&loginUrl="
+
encodeURIComponent
(
loginUrl1
)
+
"&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"
)
{
window
.
location
.
href
=
baseUrl
+
"edenoperation&loginUrl="
+
encodeURIComponent
(
loginUrl2
)
+
"&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
{
window
.
location
.
href
=
baseUrl
+
idp
+
"&loginUrl="
+
encodeURIComponent
(
loginUrl3
+
"&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
;
}
}
if
(
loginType
&&
loginType
.
length
>
0
){
...
...
@@ -93,24 +111,24 @@
<p>
区域认证
</p>
</div>
<div
class=
"login-btn-district"
>
<button
class=
"login-btn-idp
"
disabled=
"disabled
"
onclick=
"toLogin('hpjy')"
type=
"button"
>
黄浦区
</button>
<button
class=
"login-btn-idp
"
disabled=
"disabled
"
onclick=
"toLogin('xhjy')"
type=
"button"
>
徐汇区
</button>
<button
class=
"login-btn-idp
"
disabled=
"disabled
"
onclick=
"toLogin('cnjy')"
type=
"button"
>
长宁区
</button>
<button
class=
"login-btn-idp
login-btn-idp-enable
"
onclick=
"toLogin('hpjy')"
type=
"button"
>
黄浦区
</button>
<button
class=
"login-btn-idp
login-btn-idp-enable
"
onclick=
"toLogin('xhjy')"
type=
"button"
>
徐汇区
</button>
<button
class=
"login-btn-idp
login-btn-idp-enable
"
onclick=
"toLogin('cnjy')"
type=
"button"
>
长宁区
</button>
<button
class=
"login-btn-idp"
disabled=
"disabled"
onclick=
"toLogin('jajy')"
type=
"button"
>
静安区
</button>
<button
class=
"login-btn-idp
"
disabled=
"disabled
"
onclick=
"toLogin('ptjy')"
type=
"button"
>
普陀区
</button>
<button
class=
"login-btn-idp
"
disabled=
"disabled
"
onclick=
"toLogin('hkjy')"
type=
"button"
>
虹口区
</button>
<button
class=
"login-btn-idp
"
disabled=
"disabled
"
onclick=
"toLogin('ypjy')"
type=
"button"
>
杨浦区
</button>
<button
class=
"login-btn-idp
"
disabled=
"disabled
"
onclick=
"toLogin('pdjy')"
type=
"button"
>
浦东新区
</button>
<button
class=
"login-btn-idp
login-btn-idp-enable
"
onclick=
"toLogin('ptjy')"
type=
"button"
>
普陀区
</button>
<button
class=
"login-btn-idp
login-btn-idp-enable
"
onclick=
"toLogin('hkjy')"
type=
"button"
>
虹口区
</button>
<button
class=
"login-btn-idp
login-btn-idp-enable
"
onclick=
"toLogin('ypjy')"
type=
"button"
>
杨浦区
</button>
<button
class=
"login-btn-idp
login-btn-idp-enable
"
onclick=
"toLogin('pdjy')"
type=
"button"
>
浦东新区
</button>
</div>
<div
class=
"login-btn-district"
>
<button
class=
"login-btn-idp
"
disabled=
"disabled
"
onclick=
"toLogin('mhjy')"
type=
"button"
>
闵行区
</button>
<button
class=
"login-btn-idp
"
disabled=
"disabled
"
onclick=
"toLogin('bsjy')"
type=
"button"
>
宝山区
</button>
<button
class=
"login-btn-idp
login-btn-idp-enable
"
onclick=
"toLogin('mhjy')"
type=
"button"
>
闵行区
</button>
<button
class=
"login-btn-idp
login-btn-idp-enable
"
onclick=
"toLogin('bsjy')"
type=
"button"
>
宝山区
</button>
<button
class=
"login-btn-idp"
disabled=
"disabled"
onclick=
"toLogin('jdjy')"
type=
"button"
>
嘉定区
</button>
<button
class=
"login-btn-idp
"
disabled=
"disabled
"
onclick=
"toLogin('jsjy')"
type=
"button"
>
金山区
</button>
<button
class=
"login-btn-idp
"
disabled=
"disabled
"
onclick=
"toLogin('sjjy')"
type=
"button"
>
松江区
</button>
<button
class=
"login-btn-idp
login-btn-idp-enable
"
onclick=
"toLogin('jsjy')"
type=
"button"
>
金山区
</button>
<button
class=
"login-btn-idp
login-btn-idp-enable
"
onclick=
"toLogin('sjjy')"
type=
"button"
>
松江区
</button>
<button
class=
"login-btn-idp login-btn-idp-enable"
onclick=
"toLogin('qpjy')"
type=
"button"
>
青浦区
</button>
<button
class=
"login-btn-idp
"
disabled=
"disabled
"
onclick=
"toLogin('fxjy')"
type=
"button"
>
奉贤区
</button>
<button
class=
"login-btn-idp
"
disabled=
"disabled
"
onclick=
"toLogin('cmjy')"
type=
"button"
>
崇明区
</button>
<button
class=
"login-btn-idp
login-btn-idp-enable
"
onclick=
"toLogin('fxjy')"
type=
"button"
>
奉贤区
</button>
<button
class=
"login-btn-idp
login-btn-idp-enable
"
onclick=
"toLogin('cmjy')"
type=
"button"
>
崇明区
</button>
</div>
</div>
</div>
...
...
@@ -119,14 +137,5 @@
<div
class=
"footer"
>
<p
class=
"footer-text"
>
版权所有
©
上海教育认证中心
</p>
</div>
<script
th:inline=
"javascript"
>
/*<![CDATA[*/
var
loginUrl1
=
[[
$
{
loginUrl1
}]];
var
loginUrl2
=
[[
$
{
loginUrl2
}]];
var
loginUrl3
=
[[
$
{
loginUrl3
}]];
var
logId
=
[[
$
{
logId
}]];
var
ctxPath
=
/*[[@{/}]]*/
''
;
/*]]>*/
</script>
</body>
</html>
eden-authcenter-agent/src/main/resources/templates/statistics.html
View file @
f15caf2f
This diff is collapsed.
Click to expand it.
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