Skip to content

Commit

Permalink
add links
Browse files Browse the repository at this point in the history
  • Loading branch information
pilcrowonpaper committed Sep 21, 2024
1 parent eff9944 commit 7fee0aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/webauthn.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ type ClientData struct {
}
```

Finally, create a new user with their public key and the credential ID.
Finally, create a new user with their public key and the credential ID. We recommend converting the COSE-encoded public key into one of the more compact and standard formats ([ECDSA](/cryptography/ecdsa#public-keys)).

## Authentication

Expand Down Expand Up @@ -315,7 +315,7 @@ if clientData.Type != "webauthn.get" {

Another difference is that the credential portion of the authenticator is not included.

Use the credential ID to get the credential's public key. **For 2FA, ensure that the credential belongs to the authenticated user.** Skipping this check will allow malicious actors to entirely skip 2FA. The signature is of the authenticator data and the SHA-256 hash of the client data JSON. For ECDSA, the signature is ASN.1 DER encoded.
Use the credential ID to get the credential's public key. **For 2FA, ensure that the credential belongs to the authenticated user.** Skipping this check will allow malicious actors to entirely skip 2FA. The signature is of the authenticator data and the SHA-256 hash of the client data JSON. For ECDSA, the signature is [ASN.1 DER encoded](/cryptography/ecdsa#pkix).

```go
import (
Expand Down

0 comments on commit 7fee0aa

Please sign in to comment.