Skip to content

Commit

Permalink
change to dict and add new values
Browse files Browse the repository at this point in the history
  • Loading branch information
timcappalli committed Aug 1, 2023
1 parent 968040a commit 6931dad
Showing 1 changed file with 21 additions and 11 deletions.
32 changes: 21 additions & 11 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2806,15 +2806,15 @@ Note: Invoking this method from a [=browsing context=] where the [=Web Authentic

<div link-for-hint="WebAuthentication/getClientCapabilities">

[=[WRPS]=] use this method to determine the availability of a limited set of [=WebAuthn Client|client=] capabilities to offer certain workflows and experiences to users. For example, an RP may offer a sign in button on clients where only {{AuthenticatorTransport/hybrid}} transport is available (instead of showing a username field), or offer security key enrollment on [=WebAuthn Client|clients=] that support client PIN entry.
[=[WRPS]=] use this method to determine the availability of a limited set of [=WebAuthn Client|client=] capabilities to offer certain workflows and experiences to users.

Upon invocation, the [=client=] employs a [=client platform=]-specific procedure to discover availablity of these capabilities.

This method has no arguments and returns a set of strings.
This method has no arguments and returns a promise to a map.

<xmp class="idl">
partial interface PublicKeyCredential {
static Promise<sequence<DOMString>> getClientCapabilities();
static Promise<ClientCapability> getClientCapabilities();
};
</xmp>

Expand Down Expand Up @@ -3987,21 +3987,31 @@ Note: The {{UserVerificationRequirement}} enumeration is deliberately not refere
interest of minimizing disruption to the user interaction flow).
</div>

### Client Capability Enumeration (enum <dfn enum>ClientCapability</dfn>) ### {#enum-clientCapability}
### Client Capability Set (dictionary <dfn dictionary>ClientCapability</dfn>) ### {#dictionary-client-capability}

<xmp class="idl">
enum ClientCapability {
"hybrid-transport"
dictionary ClientCapability {
boolean userVerifyingPlatformAuthenticator;
boolean hybridTransport;
boolean passkeyPlatformAuthenticator;
boolean conditionalMediation;
};
</xmp>

This enumeration defines a limited set of client capabilities which a [=[WRP]=] may evaluate to offer certain workflows and experiences to users.
This dictionary defines a limited set of client capabilities which a [=[WRP]=] may evaluate to offer certain workflows and experiences to users.

Note: The {{ClientCapability}} enumeration is deliberately not referenced, see [[#sct-domstring-backwards-compatibility]].
<div dfn-type="dict-member" dfn-for="ClientCapability">
: <dfn>userVerifyingPlatformAuthenticator</dfn>
:: The [=WebAuthn Client=] supports usage of a [=user-verifying platform authenticator=].

<div dfn-type="enum-value" dfn-for="ClientCapability">
: <dfn>hybrid-transport</dfn>
:: The [=WebAuthn Client=] supports the {{AuthenticatorTransport/hybrid}} transport.
: <dfn>hybridTransport</dfn>
:: The [=WebAuthn Client=] supports usage of the {{AuthenticatorTransport/hybrid}} transport.

: <dfn>passkeyPlatformAuthenticator</dfn>
:: The [=WebAuthn Client=] supports usage of a [=passkey platform authenticator=], locally and/or via {{AuthenticatorTransport/hybrid}} transport.

: <dfn>conditionalMediation</dfn>
:: The [=WebAuthn Client=] is capable of {{CredentialMediationRequirement/conditional}} mediation.

</div>

Expand Down

0 comments on commit 6931dad

Please sign in to comment.