0

Looking at the online resources regarding WebAuthn, I still haven't been able to figure out which of the involved components (or parties) that store the link between the user and his/her authenticator device.

I borrowed this picture from Yubico's webpage;

Fido blocks

Is it the Relying Party that stores the association of "user A and authenticator A", or is it the Client itself?

Is it possible for a user to have several authenticator devices? If so, who sets the limit?

Lars Andren
  • 125
  • 5

1 Answers1

2

An authenticator can optionally store a User Handle specified by the Relying Party when a new credential is created, however for backwards compatibility with U2F authenticators the User Handle is also allowed to be null. Regardless, the Relying Party still needs to know which credentials are associated with each user, so that it can verify the credential used is actually owned by that user, and not someone else:

  1. Identify the user being authenticated and verify that this user is the owner of the public key credential source credentialSource identified by credential.id:

    • If the user was identified before the authentication ceremony was initiated, verify that the identified user is the owner of credentialSource. If credential.response.userHandle is present, verify that this value identifies the same user as was previously identified.

    • If the user was not identified before the authentication ceremony was initiated, verify that credential.response.userHandle is present, and that the user identified by this value is the owner of credentialSource.

So to answer your question, the Relying Party must associate credentials with users, and authenticators may associate credentials with users.


Due to the possibility of lost authenticators:

Relying Parties SHOULD allow and encourage users to register multiple credentials to the same account.

AndrolGenhald
  • 15,436
  • 5
  • 45
  • 50
  • So what do you do if the userHandle is null? Is the key enough to safely authenticate a user? – Jack Dec 06 '20 at 10:31