Skip to content

Commit

Permalink
Introduce |response| variable in RP registration operation
Browse files Browse the repository at this point in the history
  • Loading branch information
emlun committed Jan 17, 2018
1 parent e192c3e commit 301aa02
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2708,12 +2708,11 @@ structures.

## Registering a new credential ## {#registering-a-new-credential}

When registering a new credential, represented by a {{AuthenticatorAttestationResponse}} structure, as part of a
When registering a new credential, represented by a {{AuthenticatorAttestationResponse}} structure |response|, as part of a
[=registration=] [=ceremony=], a [=[RP]=] MUST proceed as follows:

1. Perform JSON deserialization on the {{AuthenticatorResponse/clientDataJSON}} field of the
{{AuthenticatorAttestationResponse}} object to extract the [=client data=] |C| claimed as collected during the credential
creation.
1. Perform JSON deserialization on <code>|response|.{{AuthenticatorResponse/clientDataJSON}}</code> to extract the [=client data=]
|C| claimed as collected during the credential creation.

1. Verify that the {{CollectedClientData/type}} in |C| is the string `webauthn.create`.

Expand All @@ -2729,7 +2728,7 @@ When registering a new credential, represented by a {{AuthenticatorAttestationRe
and that the {{CollectedClientData/authenticatorExtensions}} in |C| is also a subset of the extensions requested by
the RP.

1. Compute the hash of {{AuthenticatorResponse/clientDataJSON}} using SHA-256.
1. Compute the hash of <code>|response|.{{AuthenticatorResponse/clientDataJSON}}</code> using SHA-256.

1. Perform CBOR decoding on the {{AuthenticatorAttestationResponse/attestationObject}} field of the
{{AuthenticatorAttestationResponse}} structure to obtain the attestation statement format |fmt|, the [=authenticator data=]
Expand Down

0 comments on commit 301aa02

Please sign in to comment.