This repository was archived by the owner on Jan 15, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
319 lines (287 loc) · 22.8 KB
/
index.html
File metadata and controls
319 lines (287 loc) · 22.8 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
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>WebAuthn Features and Capability Detection | passkeys.dev</title>
<base href="https://featuredetect.passkeys.dev/">
<link rel="canonical" href="https://featuredetect.passkeys.dev/">
<meta name="description" content="A feature and capability detection site for WebAuthn from passkeys.dev!">
<meta property="og:title" content="passkeys.dev WebAuthn Features and Capability Detection for Passkeys">
<meta property="og:type" content="website">
<meta property="og:url" content="https://featuredetect.passkeys.dev/">
<meta property="og:site_name" content="passkeys.dev WebAuthn Feature Detection">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/custom.css" rel="stylesheet">
<link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png">
<link rel="icon" href="favicon.ico" sizes="32x32">
<link rel="apple-touch-icon" href="apple-touch-icon.png" sizes="180x180" type="image/png">
<link rel="icon" href="https://passkeys.dev/android-chrome-192x192.png" sizes="192x192" type="image/png">
<link rel="icon" href="https://passkeys.dev/android-chrome-512x512.png" sizes="512x512" type="image/png">
</head>
<body class="d-flex flex-column h-100">
<main class="flex-shrink-0">
<div class="container">
<div class="text-center mt-4">
<img src="img/pdd-icon-color-simple.svg" height="100px" alt="passkeys icon" />
<h2 class="mt-1">WebAuthn Features <br />and Capability Detection<br />for Passkeys</h2>
</div>
<div>
<div id="nowebauthn" class="mt-5" style="display: none;">
<div class="alert alert-danger text-center" role="alert">
<h1>⚠️</h1>
<h2>WebAuthn is not supported in this browser</h2>
</div>
</div>
<div id="client" class="text-center mt-3">
<h4><span class="badge bg-primary" id="clientShortName">Loading client name...</span></h4>
</div>
<div id="list" class="mt-3">
<ul class="list-group">
<li id="ppa" class="list-group-item d-flex justify-content-between align-items-center">
<a href="https://w3c.github.io/webauthn/#passkey-platform-authenticator" target="_blank">Passkey Platform Authenticator</a>
<span id="pill-ppa" class="badge rounded-pill bg-secondary">Unknown</span>
</li>
<li id="uvpa" class="list-group-item d-flex justify-content-between align-items-center">
<a href="https://w3c.github.io/webauthn/#user-verifying-platform-authenticator" target="_blank">User Verifying Platform Authenticator</a>
<span id="pill-uvpa" class="badge rounded-pill bg-secondary">Unknown</span>
</li>
<li id="hybrid" class="list-group-item d-flex justify-content-between align-items-center">
<a href="https://passkeys.dev/docs/reference/terms/#cross-device-authentication-cda"
target="_blank">Cross-Device Authentication (hybrid transports)</a>
<span id="pill-hybrid" class="badge rounded-pill bg-secondary">Unknown</span>
</li>
<li id="getcc" class="list-group-item d-flex justify-content-between align-items-center">
<a href="https://w3c.github.io/webauthn/#sctn-getClientCapabilities" target="_blank">
Get Client Capabilities</a>
<span id="pill-getcc" class="badge bg-secondary rounded-pill">Unknown</span>
</li>
<li id="condget" class="list-group-item d-flex justify-content-between align-items-center">
<a href="https://passkeys.dev/docs/reference/terms/#autofill-ui" target="_blank">Conditional
Get
(Autofill UI)</a>
<span id="pill-condget" class="badge rounded-pill bg-secondary">Unknown</span>
</li>
<li id="condcreate" class="list-group-item d-flex justify-content-between align-items-center">
Conditional Create (Passkey Upgrades)
<span id="pill-condcreate" class="badge rounded-pill bg-secondary">Unknown</span>
</li>
<li id="ror" class="list-group-item d-flex justify-content-between align-items-center">
<a href="https://passkeys.dev/docs/advanced/related-origins/" target="_blank">
Related Origin Requests</a>
<span id="pill-ror" class="badge rounded-pill bg-secondary">Unknown</span>
</li>
<li id="tojson" class="list-group-item d-flex justify-content-between align-items-center">
<a href="https://w3c.github.io/webauthn/#dom-publickeycredential-tojson"
target="_blank">toJSON() Method</a>
<span id="pill-tojson" class="badge rounded-pill bg-secondary">Unknown</span>
</li>
<li id="jsonreq" class="list-group-item d-flex justify-content-between align-items-center">
<a href="https://w3c.github.io/webauthn/#dom-publickeycredential-parserequestoptionsfromjson"
target="_blank">Parse JSON Request Options</a>
<span id="pill-jsonreq" class="badge rounded-pill bg-secondary">Unknown</span>
</li>
<li id="jsoncreate" class="list-group-item d-flex justify-content-between align-items-center">
<a href="https://w3c.github.io/webauthn/#dom-publickeycredential-parsecreationoptionsfromjson"
target="_blank">Parse JSON Creation Options</a>
<span id="pill-jsoncreate" class="badge rounded-pill bg-secondary">Unknown</span>
</li>
<li id="signalAac" class="list-group-item d-flex justify-content-between align-items-center">
RP Signals: All Accepted Credentials
<span id="pill-signalAac" class="badge rounded-pill bg-secondary">Unknown</span>
</li>
<li id="signalCud" class="list-group-item d-flex justify-content-between align-items-center">
RP Signals: Current User Details
<span id="pill-signalCud" class="badge rounded-pill bg-secondary">Unknown</span>
</li>
<li id="signalUc" class="list-group-item d-flex justify-content-between align-items-center">
RP Signals: Unknown Credential
<span id="pill-signalUc" class="badge rounded-pill bg-secondary">Unknown</span>
</li>
</ul>
</div>
</div>
<div class="accordion mt-3" id="extensions">
<div class="accordion-item">
<h2 class="accordion-header">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseOne" aria-expanded="false" aria-controls="collapseOne">
Extensions
</button>
</h2>
<div id="collapseOne" class="accordion-collapse collapse" data-bs-parent="#extensions">
<div class="accordion-body">
<ul>
<li id="extCredProps" class="list-group-item d-flex justify-content-between align-items-center">
<a href="https://www.w3.org/TR/webauthn-2/#sctn-authenticator-credential-properties-extension" target="_blank">Credential Properties (credProps)</a>
<span id="pill-extCredProps" class="badge rounded-pill bg-secondary">Unknown</span>
</li>
<li id="extLargeBlob" class="list-group-item d-flex justify-content-between align-items-center">
<a href="https://www.w3.org/TR/webauthn-2/#sctn-large-blob-extension" target="_blank">Large Blob Storage</a>
<span id="pill-extLargeBlob" class="badge rounded-pill bg-secondary">Unknown</span>
</li>
<li id="extPrf" class="list-group-item d-flex justify-content-between align-items-center">
<a href="https://w3c.github.io/webauthn/#prf-extension" target="_blank">Pseudo-Random Function (PRF)</a>
<span id="pill-extPrf" class="badge rounded-pill bg-secondary">Unknown</span>
</li>
<li id="extPayment" class="list-group-item d-flex justify-content-between align-items-center">
<a href="https://www.w3.org/TR/secure-payment-confirmation/#sctn-payment-extension-registration" target="_blank">Secure Payment Confirmation (SPC)</a>
<span id="pill-extPayment" class="badge rounded-pill bg-secondary">Unknown</span>
</li>
<li id="extAppId" class="list-group-item d-flex justify-content-between align-items-center">
<a href="https://www.w3.org/TR/webauthn-2/#sctn-appid-extension" target="_blank">FIDO AppID</a>
<span id="pill-extAppId" class="badge rounded-pill bg-secondary">Unknown</span>
</li>
<li id="extAppIdExclude" class="list-group-item d-flex justify-content-between align-items-center">
<a href="https://www.w3.org/TR/webauthn-2/#sctn-appid-exclude-extension" target="_blank">FIDO AppID Exclusion Extension</a>
<span id="pill-extAppIdExclude" class="badge rounded-pill bg-secondary">Unknown</span>
</li>
<li id="extCredBlob" class="list-group-item d-flex justify-content-between align-items-center">
<a href="https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-errata-20220621.html#sctn-credBlob-extension" target="_blank">FIDO2 Credential Blob (credBlob)</a>
<span id="pill-extCredBlob" class="badge rounded-pill bg-secondary">Unknown</span>
</li>
<li id="extGetCredBlob" class="list-group-item d-flex justify-content-between align-items-center">
<a href="https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-errata-20220621.html#sctn-credBlob-extension" target="_blank">FIDO2 Get Credential Blob</a>
<span id="pill-extGetCredBlob" class="badge rounded-pill bg-secondary">Unknown</span>
</li>
<li id="extCredentialProtectionPolicy" class="list-group-item d-flex justify-content-between align-items-center">
<a href="https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-errata-20220621.html#sctn-credProtect-extension" target="_blank">FIDO2 Credential Protection Policy (credProtect)</a>
<span id="pill-extCredentialProtectionPolicy" class="badge rounded-pill bg-secondary">Unknown</span>
</li>
<li id="extEnforceCredentialProtectionPolicy" class="list-group-item d-flex justify-content-between align-items-center">
<a href="https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-errata-20220621.html#sctn-credProtect-extension" target="_blank">FIDO2 Enforce Credential Protection Policy</a>
<span id="pill-extEnforceCredentialProtectionPolicy" class="badge rounded-pill bg-secondary">Unknown</span>
</li>
<li id="extHmacCreateSecret" class="list-group-item d-flex justify-content-between align-items-center">
<a href="https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-errata-20220621.html#sctn-hmac-secret-extension" target="_blank">FIDO2 HMAC Secret</a>
<span id="pill-extHmacCreateSecret" class="badge rounded-pill bg-secondary">Unknown</span>
</li>
<li id="extMinPinLength" class="list-group-item d-flex justify-content-between align-items-center">
<a href="https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-errata-20220621.html#sctn-minpinlength-extension" target="_blank">FIDO2 Minimum PIN Length (minPinLength)</a>
<span id="pill-extMinPinLength" class="badge rounded-pill bg-secondary">Unknown</span>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="alert alert-primary text-center mt-3" role="alert">
This is a <strong>developer</strong> resource for WebAuthn Relying Parties and Clients.<br/>
It is not intended to convey general support for passkeys for end users.
</div>
</div>
</main>
<div class="container mt-1">
<div>
<span class="text-muted text-center">Back to <a href="https://passkeys.dev">passkeys.dev</a></span>
</div>
</div>
</body>
<script src="js/bootstrap.bundle.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/ua-parser-js/dist/ua-parser.min.js"></script>
<script>
const uap = new UAParser();
const result = uap.getResult();
const friendlyName = `${result.browser.name} ${result.browser.major}` || "Unknown Client";
document.getElementById("clientShortName").textContent = friendlyName;
</script>
<script>
function updateStyle(id, type) {
var pillElement = document.getElementById(`pill-${id}`);
var liElement = document.getElementById(id);
if (!pillElement || !liElement) return;
if (type === "s") {
pillElement.className = "badge rounded-pill bg-success";
pillElement.textContent = "Supported";
liElement.classList.add("list-group-item-success");
} else if (type === "ns") {
pillElement.className = "badge rounded-pill bg-danger";
pillElement.textContent = "Not Supported";
liElement.classList.add("list-group-item-danger");
} else if (type === "a") {
pillElement.className = "badge rounded-pill bg-success";
pillElement.textContent = "Available";
liElement.classList.add("list-group-item-success");
} else if (type === "na") {
pillElement.className = "badge rounded-pill bg-danger";
pillElement.textContent = "Not Available";
liElement.classList.add("list-group-item-danger");
}
}
async function checkClientFeatures() {
if (typeof window.PublicKeyCredential !== 'undefined') {
if (typeof window.PublicKeyCredential.getClientCapabilities === 'function') {
updateStyle("getcc", "s");
try {
const capabilities = await PublicKeyCredential.getClientCapabilities();
console.log(JSON.stringify(capabilities));
// Passkey Platform Authenticator
if (capabilities.hasOwnProperty('passkeyPlatformAuthenticator')) capabilities.passkeyPlatformAuthenticator ? updateStyle("ppa", "a") : updateStyle("ppa", "na")
// UVPAA
if (capabilities.hasOwnProperty('userVerifyingPlatformAuthenticator')) capabilities.userVerifyingPlatformAuthenticator ? updateStyle("uvpa", "a") : updateStyle("uvpa", "na")
// Hybrid
if (capabilities.hasOwnProperty('hybridTransport')) capabilities.hybridTransport ? updateStyle("hybrid", "a") : updateStyle("hybrid", "na")
// Conditional Get
if (capabilities.hasOwnProperty('conditionalGet')) capabilities.conditionalGet ? updateStyle("condget", "s") : updateStyle("condget", "ns")
if (capabilities.hasOwnProperty('conditionalMediation')) capabilities.conditionalMediation ? updateStyle("condget", "s") : updateStyle("condget", "ns")
// Conditional Create
if (capabilities.hasOwnProperty('conditionalCreate')) capabilities.conditionalCreate ? updateStyle("condcreate", "s") : updateStyle("condcreate", "ns")
// Related Origins
if (capabilities.hasOwnProperty('relatedOrigins')) capabilities.relatedOrigins ? updateStyle("ror", "s") : updateStyle("ror", "ns")
// RP Signals: All Accepted Credentials
if (capabilities.hasOwnProperty('signalAllAcceptedCredentials')) capabilities['signalAllAcceptedCredentials'] ? updateStyle("signalAac", "s") : updateStyle("signalAac", "ns")
// RP Signals: Current User Details
if (capabilities.hasOwnProperty('signalCurrentUserDetails')) capabilities['signalCurrentUserDetails'] ? updateStyle("signalCud", "s") : updateStyle("signalCud", "ns")
// RP Signals: All Accepted Credentials
if (capabilities.hasOwnProperty('signalUnknownCredential')) capabilities['signalUnknownCredential'] ? updateStyle("signalUc", "s") : updateStyle("signalUc", "ns")
// Extensions
if (capabilities.hasOwnProperty('extension:appid')) capabilities['extension:appid'] ? updateStyle("extAppId", "s") : updateStyle("extAppId", "ns")
if (capabilities.hasOwnProperty('extension:appidExclude')) capabilities['extension:appidExclude'] ? updateStyle("extAppIdExclude", "s") : updateStyle("extAppIdExclude", "ns")
if (capabilities.hasOwnProperty('extension:hmacCreateSecret')) capabilities['extension:hmacCreateSecret'] ? updateStyle("extHmacCreateSecret", "s") : updateStyle("extHmacCreateSecret", "ns")
if (capabilities.hasOwnProperty('extension:credentialProtectionPolicy')) capabilities['extension:credentialProtectionPolicy'] ? updateStyle("extCredentialProtectionPolicy", "s") : updateStyle("extCredentialProtectionPolicy", "ns")
if (capabilities.hasOwnProperty('extension:enforceCredentialProtectionPolicy')) capabilities['extension:enforceCredentialProtectionPolicy'] ? updateStyle("extEnforceCredentialProtectionPolicy", "s") : updateStyle("extEnforceCredentialProtectionPolicy", "ns")
if (capabilities.hasOwnProperty('extension:minPinLength')) capabilities['extension:minPinLength'] ? updateStyle("extMinPinLength", "s") : updateStyle("extMinPinLength", "ns")
if (capabilities.hasOwnProperty('extension:credProps')) capabilities['extension:credProps'] ? updateStyle("extCredProps", "s") : updateStyle("extCredProps", "ns")
if (capabilities.hasOwnProperty('extension:largeBlob')) capabilities['extension:largeBlob'] ? updateStyle("extLargeBlob", "s") : updateStyle("extLargeBlob", "ns")
if (capabilities.hasOwnProperty('extension:credBlob')) capabilities['extension:credBlob'] ? updateStyle("extCredBlob", "s") : updateStyle("extCredBlob", "ns")
if (capabilities.hasOwnProperty('extension:getCredBlob')) capabilities['extension:getCredBlob'] ? updateStyle("extGetCredBlob", "s") : updateStyle("extGetCredBlob", "ns")
if (capabilities.hasOwnProperty('extension:payment')) capabilities['extension:payment'] ? updateStyle("extPayment", "s") : updateStyle("extPayment", "ns")
if (capabilities.hasOwnProperty('extension:prf')) capabilities['extension:prf'] ? updateStyle("extPrf", "s") : updateStyle("extPrf", "ns")
} catch (error) {
console.error("Error fetching client capabilities:", error);
}
} else {
// Set Get Client Capabilities to Not Supported
updateStyle("getcc", "ns")
// Check isUVPAA and isConditionalMediation the old way
try {
const isuvpaa = await PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable();
isuvpaa ? (updateStyle("uvpa", "a"), updateStyle("ppa", "a")) : updateStyle("uvpa", "na");
} catch (error) {
console.error("Error fetching PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable():", error);
}
try {
const iscma = await PublicKeyCredential.isConditionalMediationAvailable();
iscma ? updateStyle("condget", "s") : updateStyle("condget", "ns");
} catch (error) {
console.error("Error fetching PublicKeyCredential.isConditionalMediationAvailable():", error);
}
}
// JSON Helpers
typeof window.PublicKeyCredential.parseRequestOptionsFromJSON === 'function' ? updateStyle("jsonreq", "s") : updateStyle("jsonreq", "ns");
typeof window.PublicKeyCredential.parseCreationOptionsFromJSON === 'function' ? updateStyle("jsoncreate", "s") : updateStyle("jsoncreate", "ns");
typeof window.PublicKeyCredential.prototype.toJSON === 'function' ? updateStyle("tojson", "s") : updateStyle("tojson", "ns")
// RP Signals
typeof window.PublicKeyCredential.signalAllAcceptedCredentials === 'function' ? updateStyle("signalAac", "s") : updateStyle("signalAac", "ns");
typeof window.PublicKeyCredential.signalCurrentUserDetails === 'function' ? updateStyle("signalCud", "s") : updateStyle("signalCud", "ns");
typeof window.PublicKeyCredential.signalUnknownCredential === 'function' ? updateStyle("signalUc", "s") : updateStyle("signalUc", "ns");
} else {
document.getElementById("list").style.display = "none";
document.getElementById("nowebauthn").style.display = "block";
}
};
//getBrowserInfo();
checkClientFeatures();
</script>
</html>