Skip to content

Commit

Permalink
Add check for resident credential.
Browse files Browse the repository at this point in the history
  • Loading branch information
nsatragno committed Jul 30, 2019
1 parent 263a57b commit 7271e6c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.bs
Expand Up @@ -5761,6 +5761,9 @@ The [=remote end steps=] are:
1. Let |userHandle| be `null`.
1. If |authenticatorId| does not match any [=Virtual Authenticator=] stored in the [=Virtual Authenticator
Database=], return a [=WebDriver error=] with [=WebDriver error code=] [=invalid argument=].
1. Let |authenticator| be the [=Virtual Authenticator=] matched by |authenticatorId|.
1. If |isResidentCredential| is [TRUE] and the |authenticator|'s |hasResidentKey| property is [FALSE], return a
[=WebDriver error=] with [=WebDriver error code=] [=invalid argument=].
1. Let |credential| be a new [=Client-side-resident Public Key Credential Source=] if |isResidentCredential| is [TRUE]
or a [=Server-side-resident Public Key Credential Source=] otherwise whose items are:
: [=public key credential source/type=]
Expand All @@ -5775,7 +5778,7 @@ The [=remote end steps=] are:
:: |userHandle|
1. Associate a [=signature counter=] |counter| to the |credential| with a starting value equal to the |parameters|'
|signCount| or `0` if |signCount| is `null`.
1. Store the |credential| and |counter| in the database of the [=Virtual Authenticator=] identified by |authenticatorId|.
1. Store the |credential| and |counter| in the database of the |authenticator|.
1. Return [=success=].

## <dfn>Get Credentials</dfn> ## {#sctn-automation-get-credentials}
Expand Down

0 comments on commit 7271e6c

Please sign in to comment.