Skip to content

Commit f8da72b

Browse files
mohamedamirTallTedmarcoscaceres
authored
Make user mediation implicit and always required (#392)
* Make user mediation implicit and always required --------- Co-authored-by: Ted Thibodeau Jr <[email protected]> Co-authored-by: Marcos Cáceres <[email protected]>
1 parent cb6b3e9 commit f8da72b

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

index.html

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -863,15 +863,20 @@ <h3>
863863
[=digital credential=].
864864
</p>
865865
<p>
866-
[=User mediation=] is always
867-
{{CredentialMediationRequirement/"required"}}. [=Request a
868-
credential|Requesting a DigitalCredential credential=] does not support
869-
{{CredentialMediationRequirement/"conditional"}},
870-
{{CredentialMediationRequirement/"optional"}}, or
871-
{{CredentialMediationRequirement/"silent"}} [=user mediation=]. If
872-
{{CredentialsContainer/get()}} is called with anything other than
873-
{{CredentialMediationRequirement/"required"}}, a {{TypeError}} will be
874-
thrown.
866+
The {{DigitalCredential}} interface mandates [=user mediation=] for all
867+
operations to ensure user control and consent.
868+
</p>
869+
<p>
870+
To simplify the developer experience of {{CredentialsContainer/get()}}
871+
calls involving a {{DigitalCredential}}, [=user agents=] MUST NOT throw
872+
an error if the {{CredentialRequestOptions/mediation}} member is absent
873+
or has a value other than {{CredentialMediationRequirement/"required"}}.
874+
Similarly, in {{CredentialsContainer/create()}} calls involving a
875+
{{DigitalCredential}}, [=user agents=] MUST NOT throw an error if the
876+
{{CredentialCreationOptions/mediation}} member is absent or has a value
877+
other than {{CredentialMediationRequirement/"required"}}. This makes
878+
{{CredentialMediationRequirement/"required"}} mediation an implicit and
879+
non-overridable behavior of the API.
875880
</p>
876881
<pre class="idl">
877882
[Exposed=Window, SecureContext]

0 commit comments

Comments
 (0)