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
[BUG] Cannot add Webauthn Devices #55
Comments
Hi @bones1014, i'm not able to reproduce the issue. It works for me. But from the logmessage, it looks like you are trying to setup a first factor authentication with your yubikey? Thats not related to this twofactor provider, the firstfactor authentication is provided by nextcloud itself. If it happens on setting up a key for this twofactor provider, could you provide more information how to reproduce the issue? |
Just tested successfully using latest docker NC 21.0.2 (version from 04.06.2021) and Two-Factor Webauthn 0.2.10 |
I'll give it another try since my snap updated recently. Thanks for looking! |
There hasn't been any change to the way the app is behaving. I've removed and reinstalled the app and it still doesn't allow me to add a webaunth device. I've tried in different browsers and they are all the same. |
Is it still the same error Message? |
It doesn't give any error message. It just doesn't allow me to add a device. It just flashes to the graphic like it's going to add one and then just goes back to the add button. |
Could you provide a screenshot of what you are trying to do? |
And there is no further error entry in the nextcloud log? |
That are the contents of the console? To be honest, i doubt that. That's the sourcecode of the page |
Please provide a screenshot of what you just copied. Maybe i can point you to the right direction afterwards. |
Do you have you installation provided by https? |
I thought I did. I was primarily accessing it on my local network and I guess it didn't like the HTTPS. I just went through the web address with is running HTTPS and has no problem and it's working. huh, I didn't think about that. Thanks for the guidance. |
Ah alright. Thanks for the feedback. I will add some error handling for this. Webauthn only works through https by spec, the browsers restrict http connections. |
Same here. I used Nextcloud Storageshare by Hetzner. Windows 10, Firefox 93, YubiKey5. |
Please! Provide some more information. |
Problem also exists with Mastodon, by the way: I was able to save the keys with the Brave Browser, then the login also works under Firefox. Only the registration of a key does not work with Firefox. |
Are you trying to setup a 2FA or Passwordless Authentication? |
Brave Browser V1.31.87 With Brave i was able to add my FIDO2 Key, hope this could help: |
Username/Password with U2F YubiKey |
I dont understand your answer. So are you trying to setup 2FA or Passwordless? U2F is not in the scope of this provider. |
From your screenshot it seems you are trying to setup Passwordless Authentication. This is not in the scope of this 2FA Provider. If its an issue of this Provider please open a new Bug. Your problem does not seem to be related to this issue. |
Hello @michib, I'm having a same issue as the original author of this issue: after clicking on the button a small loading circle shows up for a split second and then disappears and nothing happens. Immediately after clicking on the button there is a message "starting webauthn registration" and it is followed by this error: BTW, I did not even tried to register any webauthn device, I just freshly installed this provider and tried to click on that button. |
@Muzosh i think the error message indicates, that you should check your nextcloud setup. It has to run on a https connection. But i don't know what this error message exactly means. You can try to install the new released version 0.2.12 and provide the logs of the browser console and the server logs here. |
@Muzosh could you retry with version 0.2.13 and post the console entries of your browsers? Please remove any sensitive data before! |
@michib Here is the result of clicking the button after updating to 0.2.13: As you have said, I'm running nextcloud on my own testing server with self-signed certificate. It is https connection but with invalid certificate that I had to allow when first connected to this server. So my problem might be in wrong configuration of the server. Thanks anyway, I wanted to test your app because I'm creating a different two-factor as well. |
Yes localhost does not work in every browser afaik. For my development testing i am using a local domain like "cloud.net.local". Browsers are happy with it :-) |
Describe the bug
When trying to add a Webauthn Device the button just flashes briefly but won't start adding a device.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (feel free to add relevant information)
Webauthn Devices
Please list here your webauthn devices, which relate to the issue, eg:
Nextcloud error log
Please attach the nextcloud error log, if applicable
Browser error log
Please attach the error from the developer console of the browser, if applicable
Additional context
The text was updated successfully, but these errors were encountered: