-
in the case of RK=true, if there are more than one user that is enrolled with the same key to the same domain, the authenticator replies with more than one assertion, am i right? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi,
Unless the user has the ability to select which credential to use on the authenticator itself, yes (see CTAP 2.1, § 6.2.2. authenticatorGetAssertion Algorithm, step 12).
No, it should be possible to retreive all assertions. An example using $ # Register first user.
$ echo credential challenge | openssl sha256 -binary | base64 > cred_param # Client data hash.
$ echo relying party >> cred_param # Relying party ID.
$ echo user1 >> cred_param # User name.
$ dd if=/dev/urandom bs=1 count=32 | base64 >> cred_param # User ID.
$ fido2-cred -M -r -i cred_param /dev/hidraw5 | fido2-cred -V -o cred1
$ # Register second user.
$ echo credential challenge | openssl sha256 -binary | base64 > cred_param
$ echo relying party >> cred_param
$ echo user2 >> cred_param
$ dd if=/dev/urandom bs=1 count=32 | base64 >> cred_param
$ fido2-cred -M -r -i cred_param /dev/hidraw5 | fido2-cred -V -o cred2
$ # Fetch the assertions.
$ echo assertion challenge | openssl sha256 -binary | base64 > assert_param
$ echo relying party >> assert_param
$ fido2-assert -G -r -i assert_param /dev/hidraw5
mZmBWUaJGwEjSNQvkFaicpCzDKhap2pQlfi8FXsv68k=
relying party
WCWusDiEl8jD03XBV+5yBpiseHi+hwrY8aqZNy+sXbRbVAEAAAAF
MEUCIQDw9oy5SigO6WWPrxsSwn3fQBeBWd62k+2bhpDWiPtvFQIgeZ8SgAKhNZJ92FQtQY03iHOJe9OfNUHZer0fjZUn0T8=
uUDR2fMZhu8OdjkBYfSoF2cJMiVxZpoPqy6494ArYcU=
mZmBWUaJGwEjSNQvkFaicpCzDKhap2pQlfi8FXsv68k=
relying party
WCWusDiEl8jD03XBV+5yBpiseHi+hwrY8aqZNy+sXbRbVAEAAAAH
MEUCIQDizkQBEF9EBtbkB4k2I51GRFIjQ0UGHUofmhcC2vn0DQIgF2n98rWhmr5j1ybN7wDavdvNebCIa8WoJjyr9Xw/tTk=
QF6hqrJdf/ENKcsG5gcHLjMfRW4tzZY1wa8VzBvfwtU= I have visually separated the two assertions with a blank line. In this case,
I'm sorry, can you clarify what exact symbols you are referring to here? |
Beta Was this translation helpful? Give feedback.
Hi,
Unless the user has the ability to select which credential to use on the authenticator itself, yes (see CTAP 2.1, § 6.2.2. authenticatorGetAssertion Algorithm, step 12).
No, it should be possible to retreive all assertions. An example using
fido2-cred
andfido2-assert
(note that our two users are given randomized user IDs):