Graceful error when platform Authentication attempted on a different device? #365
Replies: 1 comment 1 reply
-
User agent sniffing for OS (and browser, for macOS) is the way to go here. If you notice an
As for this, As for manipulating As for why the browser is prompting for security key (because the platform authenticator is telling Chrome it doesn't recognize the credential), it's because when a transports list is empty then Chrome can't really say it's not available, but it knows that the platform authenticator isn't an option. In some environments users will see a choice of "security key" or "another device" during auth, then Hybrid auth is available. Something to be aware of as you continue down this path ✌️ Does this help make sense of what you're observing? |
Beta Was this translation helpful? Give feedback.
-
I currently allow users to register both
platform
andcross-platform
authenticators, and save the CredentialID, AAGUID, attachment type, etc in the database so that I can present the user labeled options when logging in. e.g.Login with:
This works great until a user attempts to authenticate themselves using a 'platform' authenticator on a device other than the one on which they registered. (e.g. Windows Hello)
I specify only the selected authenticator in
allowCredentials
, but when attemptingstartAuthentication
the browser reverts to trying to authenticate using my security key, despite it not being listed inallowCrednetials
?! If I additionally specifytransports="internal"
inallowCredentials
when attachment isplatform
thenstartAuthentication
throws a lengthy error that isn't identified byidentifyAuthenticationError
:What I would like to have occur is to instead show the user a graceful error message that instead says something like: "It appears that you are trying to sign in using an authentication method that was registered on a different device. You should try... (etc)."
Any suggestions as to how I can reliably catch users attempting to use a platform authenticator from a different device?
Beta Was this translation helpful? Give feedback.
All reactions