question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Authenticating from multiple devices

See original GitHub issue

I am having trouble in understanding how exactly one would authenticate a user that wants to use multiple devices to log in… Lets say a user has a mac laptop with touchId and a windows pc with a security key. I register on my laptop using my touch id. That generates a public key which is then saved, and I can log in just fine on my laptop. Now I switch to my PC and want to register. I understand that there is a allowCredentials field, but I am not sure what is its use exactly. If I try to register on my PC, and save just the credential ID of that pc, but I try to log in using the public key generated from the laptop, I am guessing that will just fail, right? Would I need to also save an array of public keys, and try to authenticate with each one of them? Or maybe save which credential ID matches to which public key? This is just theory crafting as I unfortunately don’t have multiple webauth capable devices around me to test right now, so sorry if this may be a dumb question

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
Hexagoncommented, Jun 8, 2022

And yes, https://github.com/Hexagon/webauthn-skeleton/blob/1589d51af93d3befa6d9a029ae7172e0993b4e61/routes/webauthn.js#L215 does exactly what you desribed above, looping through each public key 😃

1reaction
randomprogrammingcommented, Jun 8, 2022

Yep, that’s what I thought I need to do, although I didn’t know that the cred Id would also need to be saved in the DB. Thank you for the demo, helped a lot

Read more comments on GitHub >

github_iconTop Results From Across the Web

Authentication Via Multiple Associated Devices
In the multi-device authentication system presented each user needs to have an identity in order to be authenticated. As explained previously two devices...
Read more >
Best 2FA Apps That Sync With Multiple Devices
The Best Two-Factor Authentication (2FA) Apps That Sync With Multiple Devices · 1. Authy · 2. Obsidian · 3. Zoho OneAuth.
Read more >
Clarify how a user can authenticate from multiple devices
If you want to (1) log in from multiple devices, but (2) always enforce WebAuthn authentication for every login and (3) not copy...
Read more >
Multiple devices registered for second-factor authentication
If you have more than one registered mobile device, each with more than one phone number or email address registered, a prompt appears...
Read more >
Guide to Two-Factor Authentication · Duo Security
No mobile phone? You can also use a landline or tablet, or ask your administrator for a hardware token. Duo lets you link...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found