-
Notifications
You must be signed in to change notification settings - Fork 0
/
webauthn-login.html
61 lines (59 loc) · 3.08 KB
/
webauthn-login.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>WebAuthn Login</title>
<!-- CSS -->
<link rel="stylesheet" th:href="@{../assets/material/material.blue_grey-blue.min.css}"/>
<link rel="stylesheet" th:href="@{../assets/material/material.icons.css}"/>
<link rel="stylesheet" th:href="@{../assets/font-awesome/css/font-awesome.min.css}"/>
<link rel="stylesheet" th:href="@{../assets/css/webauthn_login.css}"/>
<!-- Favicon and touch icons -->
<link rel="shortcut icon" th:href="@{../assets/ico/favicon.ico}"/>
</head>
<body>
<div class="mdl-layout mdl-js-layout">
<div class="webauthn-login-container">
<div class="webauthn-login-form">
<div class="webauthn-login-form-title">
<label>Sign in with fingerprint, device or security key</label>
<span>to continue to <span th:text="${domain.name}"></span></span>
<small>Enter your username and press sign in. A security window will pop up. Follow the instructions to sign in.</small>
</div>
<div id="webauthn-browser-error" class="webauthn-error-info" style="display: none;">
<span>
<span class="error">technical_error</span>
<small id="webauthn-browser-error-description" class="error_description"></small>
</span>
</div>
<form role="form" id="login" method="post" th:action="${action}">
<div class="webauthn-login-form-content">
<div class="input-textfield">
<label for="username">Username</label>
<input type="text" id="username" name="username" autofocus="autofocus" required />
</div>
<div id="webauthn-error" class="webauthn-login-error-info" style="display: none;">
<span>
<span class="error">login_failed</span>
<small class="error_description">Invalid user</small>
</span>
</div>
</div>
<div class="webauthn-login-form-actions">
<button class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--accent">Sign in</button>
</div>
<div class="webauthn-login-form-additional-actions">
<div>
<span>Cannot login ? </span><a th:href="${loginAction}">switch to default sign in process</a>
</div>
</div>
</form>
</div>
</div>
</div>
<script th:src="@{../assets/js/webauthn.auth.js}"></script>
<script th:src="@{../assets/js/webauthn-login.js}"></script>
</body>
</html>