-
Notifications
You must be signed in to change notification settings - Fork 429
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
87 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# | ||
# \u7248\u6743\u6240\u6709.(c)2008-2017.\u5361\u5C14\u79D1\u6280\u5DE5\u4F5C\u5BA4 | ||
# | ||
demo.css.file=/themes/demo/css/demo.css | ||
demo.pageTitle=demo page title | ||
|
||
standard.custom.css.file=/css/cas.css | ||
admin.custom.css.file=/css/admin.css | ||
cas.javascript.file=/js/cas.js | ||
|
||
|
5 changes: 3 additions & 2 deletions
5
sso-server/src/main/resources/services/Localhost-10000002.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
{ | ||
"@class": "org.apereo.cas.services.RegexRegisteredService", | ||
"serviceId": "^(http|https)://(localhost|192.168).*", | ||
"serviceId": "^http://(localhost|192.168).*", | ||
"name": "Local Services", | ||
"id": 10000002, | ||
"description": "this is a localhost service", | ||
"evaluationOrder": 10000000 | ||
"evaluationOrder": 10000000, | ||
"theme":"demo" | ||
} |
7 changes: 7 additions & 0 deletions
7
sso-server/src/main/resources/static/themes/demo/css/demo.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/* | ||
* 版权所有.(c)2008-2017.卡尔科技工作室 | ||
*/ | ||
|
||
h1 { | ||
color: blue; | ||
} |
66 changes: 66 additions & 0 deletions
66
sso-server/src/main/resources/templates/demo/casLoginView.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<!DOCTYPE html> | ||
<!-- | ||
~ 版权所有.(c)2008-2017.卡尔科技工作室 | ||
--> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"/> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"/> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"/> | ||
<title th:text="${#themes.code('demo.pageTitle')}"></title> | ||
<link rel="stylesheet" th:href="@{${#themes.code('demo.css.file')}}"/> | ||
</head> | ||
|
||
<body> | ||
<h1 th:text="${#themes.code('demo.pageTitle')}"></h1> | ||
<div> | ||
<form method="post" th:object="${credential}"> | ||
<div th:if="${#fields.hasErrors('*')}"> | ||
<span th:each="err : ${#fields.errors('*')}" th:utext="${err}"/> | ||
</div> | ||
<h2 th:utext="#{screen.welcome.instructions}"></h2> | ||
|
||
<section class="row"> | ||
<label for="username" th:utext="#{screen.welcome.label.netid}"/> | ||
<div th:unless="${openIdLocalId}"> | ||
<input class="required" | ||
id="username" | ||
size="25" | ||
tabindex="1" | ||
type="text" | ||
th:disabled="${guaEnabled}" | ||
th:field="*{username}" | ||
th:accesskey="#{screen.welcome.label.netid.accesskey}" | ||
autocomplete="off"/> | ||
</div> | ||
</section> | ||
|
||
<section class="row"> | ||
<label for="password" th:utext="#{screen.welcome.label.password}"/> | ||
<div> | ||
<input class="required" | ||
type="password" | ||
id="password" | ||
size="25" | ||
tabindex="2" | ||
th:accesskey="#{screen.welcome.label.password.accesskey}" | ||
th:field="*{password}" | ||
autocomplete="off"/> | ||
</div> | ||
</section> | ||
|
||
<section> | ||
<input type="hidden" name="execution" th:value="${flowExecutionKey}"/> | ||
<input type="hidden" name="_eventId" value="submit"/> | ||
<input type="hidden" name="geolocation"/> | ||
<input class="btn btn-submit btn-block" | ||
name="submit" | ||
accesskey="l" | ||
th:value="#{screen.welcome.button.login}" | ||
tabindex="6" | ||
type="submit"/> | ||
</section> | ||
</form> | ||
</div> | ||
</body> | ||
</html> |