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

Only one Webauthn Device funtioning #255

Closed
1 task done
phoenix1184 opened this issue Dec 16, 2023 · 5 comments
Closed
1 task done

Only one Webauthn Device funtioning #255

phoenix1184 opened this issue Dec 16, 2023 · 5 comments
Labels
bug Something isn't working fixed The issue is fixed (in a coming release)
Milestone

Comments

@phoenix1184
Copy link

phoenix1184 commented Dec 16, 2023

Version

4.2.0

Details & Steps to reproduce

Using 2Fauth with PostgreSQL

Registering multiple 2FA devices Webauthn works.
Login only works with the first device registered.

Expectation

Login with multiple devices
For example: Yubikey, Windows Hello, iphone.

Error & Logs

No response

Execution environment

Compose

Containerization

  • Docker

Additional information

No response

@phoenix1184
Copy link
Author

Hey Bubka
I've tested the above bug again with SQLite is no problem. Everything works as expected.

It must be a problem with PostgreSQL installation.

I've tested both methods without export /import of any Data. So both are fresh installations and table generations. No error in Logs.

Beside this everything works fine.

@phoenix1184
Copy link
Author

As I can tell from further inspection, when importing the webauthn_credentials table from SQLite to PostgrSQL everything works as expected. I think there must be an error by generating the public key

@Bubka
Copy link
Owner

Bubka commented Dec 18, 2023

Thanks for all these information.
I don't have a PostgrSQL right now to test, I will need to set up one.

Login only works with the first device registered

You mean each device works as long as it is registered as the first one? Regardless of how many devices are registered?

@phoenix1184
Copy link
Author

Thanks for all these information. I don't have a PostgrSQL right now to test, I will need to set up one.

Login only works with the first device registered

You mean each device works as long as it is registered as the first one? Regardless of how many devices are registered?

Correct. Each device will wok as long as it ist the firest one registered, no matter how many devices are registerd.

@Bubka Bubka added the bug Something isn't working label Jan 2, 2024
@PeopleInside
Copy link

From my test also the recovery device never work.
#298
so if a device is lost, seems will be no more possible to login

@Bubka Bubka added the fixed The issue is fixed (in a coming release) label Mar 28, 2024
@Bubka Bubka added this to the v5.1.2 milestone Mar 28, 2024
@Bubka Bubka modified the milestones: v5.1.2, v5.2.0 Apr 26, 2024
@Bubka Bubka closed this as completed in ca903b6 May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed The issue is fixed (in a coming release)
Projects
Status: Released
Development

No branches or pull requests

3 participants