From cd8764fec48ccd522f3f233cf5201969b63978d1 Mon Sep 17 00:00:00 2001 From: Marcos Caceres Date: Thu, 5 Sep 2024 09:39:53 +1000 Subject: [PATCH 1/8] change providers to requests --- explainer.md | 2 +- index.html | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/explainer.md b/explainer.md index 177acdf..7b75375 100644 --- a/explainer.md +++ b/explainer.md @@ -55,7 +55,7 @@ async function requestLicense() { }; const digitalCredential = await navigator.identity.get({ digital: { - providers: [oid4pv], + requests: [oid4pv], }, }); // To be decrypted on the server... diff --git a/index.html b/index.html index 086805f..a191c1f 100644 --- a/index.html +++ b/index.html @@ -189,29 +189,29 @@

     dictionary DigitalCredentialRequestOptions {
-      sequence<DigitalCredentialsProvider> providers;
+      sequence<DigitalCredentialsProvider> requests;
     };
     

- The `providers` member + The `requests` member

- The providers + The requests specify an [=digital credential/exchange protocol=] and [=digital credential/query=], which the user agent MAY match against a holder's software, such as a digital wallet.

- The `DigitalCredentialsProvider` dictionary + The `DigitalCredentialsRequest` dictionary

- The {{DigitalCredentialsProvider}} dictionary is used to specify an + The {{DigitalCredentialsRequest}} dictionary is used to specify an [=digital credential/exchange protocol=] and a [=digital credential/query=], which the user agent MAY match against software used by a holder, such as a digital wallet.

-    dictionary DigitalCredentialsProvider {
+    dictionary DigitalCredentialsRequest {
       required DOMString protocol;
       required object request;
     };
@@ -220,12 +220,12 @@ 

The `protocol` member

- The protocol member + The protocol member denotes the [=digital credential/exchange protocol=] when requesting an identify credential.

- The {{DigitalCredentialsProvider/protocol}} member's value is be one of + The {{DigitalCredentialsRequest/protocol}} member's value is be one of the well-defined keys defined in [[[#protocol-registry]]] or any other custom one.

@@ -233,7 +233,7 @@

The `request` member

- The request member + The request member is the request to be handled by the holder's software, such as a digital wallet.

@@ -308,10 +308,10 @@

  • [=Consume user activation=] of |window|.
  • -
  • Let |providers| be |options|'s {{CredentialRequestOptions/digital}}'s - {{DigitalCredentialRequestOptions/providers}} member. +
  • Let |requests| be |options|'s {{CredentialRequestOptions/digital}}'s + {{DigitalCredentialRequestOptions/requests}} member.
  • -
  • If |providers| is empty, [=exception/throw=] a {{TypeError}}. +
  • If |requests| is empty, [=exception/throw=] a {{TypeError}}.