-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsignup.html
93 lines (93 loc) · 4.13 KB
/
signup.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="WebAuthn demo for FIDO2 passwordless authentication">
<meta name="author" content="Faye Amacker">
<title>Sign up</title>
<link rel="stylesheet" href="css/bootstrap.min.css">
<style>
.signin {
min-width: 300px;
max-width: 500px;
padding-left: 15px;
padding-right: 15px;
margin-left: auto;
margin-right: auto;
}
</style>
</head>
<body class="bg-light">
<div class="signin">
<div class="py-5 text-center">
<h2>Sign up</h2>
</div>
<div class="card p-4 mb-3 shadow-sm">
<form id="register" class="needs-validation" novalidate>
<div class="form-group">
<label for="displayName">Name</label>
<input type="text" class="form-control" id="displayName" name="displayName" placeholder="Name" required>
<div class="invalid-feedback">
Your name is required.
</div>
</div>
<div class="form-group">
<label for="username">Email address</label>
<input type="email" class="form-control" id="username" name="username" placeholder="[email protected]" required>
<div class="invalid-feedback">
Your email is required.
</div>
</div>
<div class="form-group">
<label for="attestation">Attestation type</label>
<select class="custom-select d-block w-100" id="attestation" name="attestation" required>
<option selected value="none">None</option>
<option value="indirect">Indirect</option>
<option value="direct">Direct</option>
</select>
</div>
<div class="form-group">
<label for="authenticator">Authenticator</label>
<select class="custom-select d-block w-100" id="authenticator" name="authenticator">
<option selected value="">Not specified</option>
<option value="cross-platform">Cross Platform (Token)</option>
<option value="platform">Platform (TPM)</option>
</select>
</div>
<div class="form-group">
<label for="userverification">User verification</label>
<select class="custom-select d-block w-100" id="userverification" name="userverification" required>
<option value="required">Required</option>
<option selected value="preferred">Preferred</option>
<option value="discouraged">Discouraged</option>
</select>
</div>
<div class="form-group mb-4">
<label for="residentkey">Resident key</label>
<select class="custom-select d-block w-100" id="residentkey" name="residentkey" required>
<option value="required">Required</option>
<option selected value="preferred">Preferred</option>
<option value="discouraged">Discouraged</option>
</select>
</div>
<button class="btn btn-primary btn-block" type="submit" value="register">Sign up</button>
</form>
</div>
<div class="card p-4 shadow-sm text-center">
<span>Already registered? <a href="/">Sign in.</a></span>
</div>
<footer class="my-5 pt-5 text-center text-muted">
<p class="mb-1">
<small>Copyright © 2019 <a href="https://github.com/fxamacker">Faye Amacker</a></small>
</p>
<p class="mb-1">
<small>The source code is available on <a href="https://github.com/fxamacker/webauthn-demo">Github</a>, licensed under <a href="https://github.com/fxamacker/webauthn-demo/blob/master/LICENSE">Apache License 2.0.</a></small>
</p>
</footer>
</div>
<script src="js/jquery-3.4.1.min.js"></script>
<script src="js/base64url.js"></script>
<script src="js/webauthn.register.js"></script>
</body>
</html>