Skip to content

Commit

Permalink
[webid] Expose WebID as an extension of the Credential Manager API.
Browse files Browse the repository at this point in the history
Overloads FederatedCredential adding new attributes as well as static
methods to support the mediated of the Account Chooser for
FederatedCredentials.

Explainer: https://github.com/WICG/WebID
I2P https://groups.google.com/a/chromium.org/g/blink-dev/c/2B4TJ7j2U4M
Spec Draft: https://wicg.github.io/WebID

Change-Id: I2176ea4e687b9ac3fe7387e5658cf5c4adcfc6b8
  • Loading branch information
Sam Goto authored and chromium-wpt-export-bot committed Sep 1, 2021
1 parent 72cebca commit f30c354
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions credential-management/webid.https.html
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<title>Credential Management API: create() basics.</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
promise_test(function(t) {
// Expects the credential manager to throw a NotSupportedError while
// attemping to use the WebID when it is not yet enabled.
return promise_rejects_dom(t, "NotSupportedError",
navigator.credentials.get({
federated: {
providers: [{
provider: "bar"
}]
}
}));
}, "navigator.credentials.get() with invalid providers.");
</script>

0 comments on commit f30c354

Please sign in to comment.