forked from GramThanos/WebDevAuthn
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkey-management.html
More file actions
227 lines (210 loc) · 9.84 KB
/
key-management.html
File metadata and controls
227 lines (210 loc) · 9.84 KB
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>WebDevAuthn</title>
<meta name="description" content="Testing WebAuthn/FIDO2 Javascript API requests and responses">
<meta name="author" content="UNIPI - FIDO Project 2021">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="css/fontawesome-all.min.css">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/jsNotify.bootstrap.css">
<link rel="stylesheet" href="css/webapp.css">
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
<div class="container">
<a class="navbar-brand" href="index.html"><i class="fas fa-hashtag"></i> WebDevAuthn</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="index.html"><i class="fas fa-home"></i> Home</a>
</li>
<li class="nav-item active">
<a class="nav-link" href="key-management.html"><i class="fas fa-key"></i> Key Management <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="credential-creation.html"><i class="fas fa-angle-double-up"></i> Credential Creation</a>
</li>
<li class="nav-item">
<a class="nav-link" href="credential-get.html"><i class="fas fa-angle-double-down"></i> Credential Get</a>
</li>
<li class="nav-item">
<a class="nav-link" href="web-injector.html"><i class="fas fa-code"></i> Web Injector</a>
</li>
</ul>
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="about.html"><i class="fas fa-info-circle"></i> About</a>
</li>
</ul>
</div>
</div>
</nav>
<!-- Page Title -->
<div class="main-page-title">
<div class="container">
<i class="fas fa-key"></i> Key Management
</div>
</div>
<!-- Content -->
<div class="main-container">
<div class="container">
<div class="row">
<div class="col-12">
<p>
Manage the generated keys stored on this browser.
</p>
</div>
</div>
<!-- Stored Keys -->
<div class="row">
<div class="col-12">
<ul class="nav nav-tabs">
<li class="nav-item">
<a class="nav-link active" data-toggle="tab" href="#key-management-local-credential-ids-wrapper"><i class="fas fa-fingerprint"></i> Local Credential IDs</a>
</li>
<li class="nav-item">
<a class="nav-link" data-toggle="tab" href="#key-management-local-authenticator-wrapper"><i class="fas fa-microchip"></i> Local Virtual Authenticator Keys</a>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane fade active show" id="key-management-local-credential-ids-wrapper">
<p>This is a list of Credentials IDs representing the information needed to request a credentials get for already created credentials. This information is stored by the server along with the public key information.</p>
<!-- Local Public Keys -->
<button id="localstorage-keys-reload" class="btn btn-sm btn-secondary" style="float: right;"><i class="fas fa-sync"></i> Reload</button>
<select id="localstorage-keys-hosts-list" class="form-control" style="float: right;width: 200px;margin-right: 10px;margin-top: -2px;"></select>
<p>Credential IDs stored on LocalStorage:</p>
<div class="table-responsive">
<table class="table">
<tbody id="localstorage-keys">
<tr>
<td colspan="3">Loading ...</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="tab-pane fade" id="key-management-local-authenticator-wrapper">
<p>This is a list of resident keys created by our virtual authenticator. This information is needed by the virtual authenticator in order to recover the private key of each credential.</p>
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#masterPasswordModal" style="float: right;margin-bottom: 8px;"><i class="fas fa-key"></i> Configure Master Password</button>
<div style="clear: both;"></div>
<!-- Local Authenticator Keys -->
<button id="localstorage-authenticator-keys-reload" class="btn btn-sm btn-secondary" style="float: right;"><i class="fas fa-sync"></i> Reload</button>
<select id="localstorage-authenticator-keys-hosts-list" class="form-control" style="float: right;width: 200px;margin-right: 10px;margin-top: -2px;"></select>
<p>Virtual Authenticator's Credential Information stored on LocalStorage:</p>
<div class="table-responsive">
<table class="table">
<tbody id="localstorage-authenticator-keys">
<tr>
<td colspan="3">Loading ...</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<!-- Browser Support { -->
<div class="row">
<div class="col-12" id="webauthn-support">
<div class="alert alert-warning" role="alert">
Checking browser's WebAuthn support ...
</div>
</div>
<script src="js/webauthn-support.js"></script>
</div>
<!-- } Browser Support -->
</div>
</div>
<div class="container footer">
<div class="row">
<div class="col-12">
<div>Copyright © 2022 - 2023, <a href="https://github.com/GramThanos">Athanasios Vasileios Grammatopoulos</a> - <a href="https://github.com/GramThanos/WebDevAuthn">GitHub</a></div>
<div>In collaboration with <a href="https://ssl.ds.unipi.gr/">Systems Security Laboratory</a>, Department of Digital Systems, <a href="https://www.unipi.gr/">University of Piraeus</a></div>
</div>
<div class="col-12">
<div style="height:300px;"></div>
<div style="text-align: right;font-family: Consolas;"><-- this is the end --></div>
</div>
</div>
</div>
<div class="modal fade" id="masterPasswordModal" tabindex="-1" aria-labelledby="masterPasswordModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="masterPasswordModalLabel">Configure Master Password</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form>
<div class="form-group">
<label for="localstorage-authenticator-masterkey">Master Key</label>
<div class="input-group mb-2 mr-sm-2">
<input type="password" id="localstorage-authenticator-masterkey" class="form-control" placeholder="Master Key" value=""/>
<div class="input-group-append">
<div class="input-group-text" style="width: 42px;">
<i class="fas fa-eye-slash" id="localstorage-authenticator-masterkey-visible" style="cursor: pointer;"></i>
</div>
</div>
</div>
</div>
<div class="form-group form-check">
<input type="checkbox" class="form-check-input" id="localstorage-authenticator-always-ask-for-masterkey">
<label class="form-check-label" for="localstorage-authenticator-always-ask-for-masterkey">Always ask Master Key</label>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="decryptWrappedKey" tabindex="-1" aria-labelledby="decryptWrappedKeyLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-lg">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="decryptWrappedKeyLabel">Decrypt Wrapped Key</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<ul class="nav nav-tabs" id="decryptWrappedKeyView" role="tablist">
<li class="nav-item">
<a class="nav-link active" id="decryptWrappedKeyView-raw-tab" data-toggle="tab" href="#decryptWrappedKeyView-raw" role="tab" aria-controls="decryptWrappedKeyView-raw" aria-selected="true">Raw</a>
</li>
<li class="nav-item">
<a class="nav-link" id="decryptWrappedKeyView-decoded-tab" data-toggle="tab" href="#decryptWrappedKeyView-decoded" role="tab" aria-controls="decryptWrappedKeyView-decoded" aria-selected="false">Decoded</a>
</li>
</ul>
<div class="tab-content" id="myTabContent">
<div class="tab-pane fade show active" id="decryptWrappedKeyView-raw" role="tabpanel" aria-labelledby="decryptWrappedKeyView-raw-tab"><pre></pre></div>
<div class="tab-pane fade" id="decryptWrappedKeyView-decoded" role="tabpanel" aria-labelledby="decryptWrappedKeyView-decoded-tab"><pre></pre></div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<script src="js/jquery-3.5.1.slim.min.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jsNotify.bundle.js"></script>
<script src="js/cbor.js"></script>
<script src="js/ua-parser.min.js"></script>
<script src="js/webauthn-tools.js"></script>
<script src="js/webauthn-authenticator.js"></script>
<script src="js/credentials-storage.js"></script>
<script src="js/webauthn-keys.js"></script>
</body>
</html>