Support for Usernameless #103
Replies: 19 comments 53 replies
-
It's implemented since PR#97 so all is ready to do it |
Beta Was this translation helpful? Give feedback.
-
yes ok bit for registration i have residentkey |
Beta Was this translation helpful? Give feedback.
-
@fturiot There's some work going on right now on the SimpleWebAuthn homepage to document how to set up your server to support Usernameless. In the meantime, here are some bits of info that can help: 1. Configure attestation options to require resident key and user verification.Your options should look something like this: {
"user": {
// By nature of the fact that this is usernameless you'll have to specify
// something here, even if it's not pretty
"name": " (Usernameless user created at 2/1/2021 5:53:46 PM)",
// Generate an otherwise legitimate user ID here, unique from any other
// user account in your DB
"id": "IChVc2VybmFtZWxlc3MgdXNlciBjcmVhdGVkIGF0IDIvMS8yMDIxIDU6NTM6NDYgUE0p"
},
"authenticatorSelection": {
"requireResidentKey": true,
"userVerification": "required"
}
// ...all the other options here...
} You will need to generate a random value for That's not to say you actually create a new user account in your system before they complete attestation verification; rather, you're generating and temporarily persisting a user ID, as part of the 2. For assertions, don't specify anything for
|
Beta Was this translation helpful? Give feedback.
-
yes thanks, but user in this form is not accepted in simpleauthn |
Beta Was this translation helpful? Give feedback.
-
Ah, yes, to populate those two fields you would indeed populate |
Beta Was this translation helpful? Give feedback.
-
yes thanks, i go to developp login |
Beta Was this translation helpful? Give feedback.
-
in login key populate user information ? |
Beta Was this translation helpful? Give feedback.
-
I'm not sure I understand your question. Can you provide some more context of what you're asking about? |
Beta Was this translation helpful? Give feedback.
-
login passwordless and userless |
Beta Was this translation helpful? Give feedback.
-
Yes, the value you specify as |
Beta Was this translation helpful? Give feedback.
-
ok but i use uuid for id user but problem for decode this |
Beta Was this translation helpful? Give feedback.
-
i think i must be decode |
Beta Was this translation helpful? Give feedback.
-
Yep, decode that to buffer and it should work for Also keep in mind |
Beta Was this translation helpful? Give feedback.
-
thanks for all
just one last question
in
Verify attestation response
the id populate is it userId ?
thanks for all
regards
…--
Frédéric TURIOT
|
Beta Was this translation helpful? Give feedback.
-
Unfortunately no, it's the Credential ID. You don't get |
Beta Was this translation helpful? Give feedback.
-
@fturiot I'm going to convert this into a Discussion since it's turned into a very interesting conversation I don't want getting lost in the Closed Issues section of the repo. |
Beta Was this translation helpful? Give feedback.
-
@MasterKale I just wanted to let you know that I ended up implementing authentication without a password or username and everything is working fine. I will publish my demo app and I could give you the link so you can test. I will also provide my GitHub so you can see the code behind. Thank you for this beautiful bookstore which helped me a lot |
Beta Was this translation helpful? Give feedback.
-
When using resident keys, what "expectedChallenge" would one provide when verifying the assertion response? As username-less implies, we don't know anything about the user that's going to log in, and we can't just use the returned userHandle until we verified the assertion response. Also, what I don't understand: How can we verify the signature if we don't know the public key? |
Beta Was this translation helpful? Give feedback.
-
Hi all! Very interesting and helpful thread. I was wondering if anyone was able to "combine" register/login? |
Beta Was this translation helpful? Give feedback.
-
Hello,
has anyone implemented userless webauthn authentication?
thanks for help
regards
Beta Was this translation helpful? Give feedback.
All reactions