Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display QR code immediatly #32

Closed
SourceCipher opened this issue Aug 25, 2023 · 7 comments
Closed

Display QR code immediatly #32

SourceCipher opened this issue Aug 25, 2023 · 7 comments

Comments

@SourceCipher
Copy link

For some reason when I make a registration or login func, I get multiple popup windows appearing. First it asks me to always use USB key, no matter which options I will pass. If I press cancel then it shows another window to choose if I want to use tablet, phone etc and only when you select it displays qr code.

Is there any way to display that qr code as soon as the user presses the button? We know that the users will be using mobile phones always so these window popups are worthless for us and very confusing.

@dagnelies
Copy link
Collaborator

I don't think that's possible. The logic "how" and "what" appears is on the browser/platform side. All we can do is trigger whether we want to allow local/roaming or both authenticator types.

There is maybe (and it's a big maybe) a way to achieve that by playing around the allowed "transports" in the protocol or using some protocol extension, but I'm quite unsure of the result. It's also browser/platform specific, each one will show some slightly different behavior, is not very consistant and has changed several times over last year.

You can try to play around the native protocol if you want, and can gladly report your experience. Perhpas there is a way, dunno. Forcing the transports:["hybrid"] might be the best chance, but it's currently not overridable in this lib (all roaming authenticators are allowed for maximum compatibility instead)

@SourceCipher
Copy link
Author

@dagnelies Ok thanks for the speedy answer! I will do my research and if I manage to do something close to that I will post the details here.

@dagnelies
Copy link
Collaborator

@SourceCipher any results?

@SourceCipher
Copy link
Author

So far I cant find any information if its possible to make a dynamic qr code upon login in or registration without any popups coming up

@dagnelies
Copy link
Collaborator

@SourceCipher have you tried playing around with the transports property during registration? ...I also think the result might differ among browsers/platforms.

@SourceCipher
Copy link
Author

No, not yet, I will have a look a bit later into it. And yes we tried with windows, mac and various browsers and result is different. Thats why its important for us to have that dynamic handling to make sure all the users have the same interaction

@dagnelies
Copy link
Collaborator

You are welcome to reopen this if you got some news.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants