Skip to content

Commit

Permalink
Fix #551 - Define a Store method for PublicKeyCredential.
Browse files Browse the repository at this point in the history
The Store operation isn't defined for PublicKeyCredential, even though it
is inherited from Credential Management. This defines that operation as
always resolving with an error.
  • Loading branch information
jcjones committed Oct 12, 2017
1 parent f6c9ed6 commit b7613fa
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -985,6 +985,26 @@ During the above process, the user agent SHOULD show some UI to the user to guid
authorizing an authenticator with which to complete the operation.
</div>

### Store an existing credential - PublicKeyCredential's `[[Store]](credential)` method ### {#storeCredential}

<div link-for-hint="PublicKeyCredential/[[Store]](credential)">

The <dfn for="PublicKeyCredential" method>\[[Store]](credential)</dfn> method is not supported
for Web Authentication's {{PublicKeyCredential}} type, so it always returns an error.

Note: This algorithm is synchronous; the {{Promise}} resolution/rejection is handled by
{{CredentialsContainer/store()|navigator.credentials.store()}}.

This method accepts a single argument:

<dl dfn-type="argument" dfn-for="PublicKeyCredential/[[Store]](credential)">
: <dfn>credential</dfn>
:: This argument is a {{PublicKeyCredential}} object.
</dl>

When this method is invoked, the user agent MUST execute the following algorithm:

1. Return a {{DOMException}} whose name is "{{NotSupportedError}}", and terminate this algorithm

### Platform Authenticator Availability - PublicKeyCredential's `isPlatformAuthenticatorAvailable()` method ### {#isPlatformAuthenticatorAvailable}

Expand Down

0 comments on commit b7613fa

Please sign in to comment.