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
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3123775
Reviewed-by: Mike West <mkwst@chromium.org>
Reviewed-by: Ken Buchanan <kenrb@chromium.org>
Commit-Queue: Sam Goto <goto@chromium.org>
Cr-Commit-Position: refs/heads/main@{#917241}
  • Loading branch information
Sam Goto authored and chromium-wpt-export-bot committed Sep 1, 2021
1 parent a5b0a22 commit a48df4c
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 a48df4c

Please sign in to comment.