Skip to content

Commit 3819a91

Browse files
committed
FedCM, passkey, Related Origin Requests
1 parent 13e6e91 commit 3819a91

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

.github/pull_request_template.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ Description of the changes...
77
<!-- List the pages that should be automatically tested as part of your custom metric changes. -->
88
**Test websites**:
99

10-
- https://example.com/
10+
- https://www.ebay.com/
11+
- https://www.amazon.co.uk/
12+
- https://tv.apple.com/

dist/well-known.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,34 @@ return Promise.all([
115115
return data;
116116
});
117117
}),
118+
// FedCM
119+
parseResponse('/.well-known/web-identity', r => {
120+
return r.json().then(data => {
121+
let result = {
122+
provider_urls: data.provider_urls || [],
123+
accounts_endpoint: data.accounts_endpoint || null,
124+
login_url: data.login_url || null
125+
};
126+
return result;
127+
});
128+
}),
129+
// Passkey
130+
parseResponse('/.well-known/passkey-endpoints', r => {
131+
return r.json().then(data => {
132+
let result = {
133+
enroll: data.enroll || null,
134+
manage: data.manage || null
135+
};
136+
return result;
137+
});
138+
}),
139+
// Related Origin Requests
140+
parseResponse('/.well-known/webauthn', r => {
141+
return r.json().then(data => {
142+
let origins = data.origins ||[];
143+
return { origins };
144+
});
145+
}),
118146
// security
119147
parseResponse('/robots.txt', r => {
120148
return r.text().then(text => {

0 commit comments

Comments
 (0)