Skip to content

Commit

Permalink
Prompt for credential selection only if more than one eligible
Browse files Browse the repository at this point in the history
Per review comment by @rlin1.
  • Loading branch information
emlun committed Nov 15, 2017
1 parent ea30a33 commit 3d352c7
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2163,7 +2163,19 @@ When this method is invoked, the [=authenticator=] must perform the following pr
1. If |allowCredentialDescriptorList| is now empty, return an error code equivalent to "{{NotAllowedError}}" and terminate the
operation.

1. Prompt the user to select a [=public key credential|credential=] |selectedCredential| from |allowCredentialDescriptorList|.
1. Let |selectedCredential| be a [=public key credential|credential=] as follows. If the [=list/size=] of
|allowCredentialDescriptorList|

<dl class="switch">
: is exactly 1
:: Let |selectedCredential| be the [=public key credential|credential=] matching
<code>|allowCredentialDescriptorList|[0]</code>.

: is greater than 1
:: Prompt the user to select |selectedCredential| from the [=public key credential|credentials=] matching the
[=list/items=] in |allowCredentialDescriptorList|.
</dl>


1. Obtain [=user consent=] for using |selectedCredential|. The prompt for obtaining this [=user consent|consent=] may be shown by
the [=authenticator=] if it has its own output capability, or by the user agent otherwise. The prompt SHOULD display the
Expand Down

0 comments on commit 3d352c7

Please sign in to comment.