FredL
October 31, 2023, 8:09pm
1
Hi,
I am trying to setup passwordless login on my Nextcloud instance.
I registered a FIDO2/Webauthn device with no problems (Setting => Security => Passwordless Authentification).
But if I log out and try to log in with a device, I get this error : “Your account is not setup for passwordless login.”
Did I miss something during the setup ?
The same FIDO2 device works as a Two-Factor Authentification.
Nextcloud 27.1.3 on Debian 12.2 (PHP 8.2).
bb77
November 1, 2023, 6:26am
2
Did you enter a name for the device and click the “Add” button next to the input field after setting up the WebAuthn device?
And this might be a silly question, but did you specify a username when you tried to log in with the decice? Obviously, it must be the username of the account for which you have set up passwordless authentication. If you leave the username field blank or if you enter an incorrect username, you will get this message.
If the answer to the above questions is yes we would need more details about your setup to be able to help, and please take a look at the log to see if there are any error messages, and then post them here as well.
FredL
November 1, 2023, 3:54pm
3
The answer is yes to all questions.
I will do more tests and come back with more data.
Thanks for your help @bb77
FredL
November 5, 2023, 7:27pm
4
There is a bug report for this issue but it has been closed:
opened 02:54PM - 16 Jun 23 UTC
closed 12:13AM - 11 Oct 23 UTC
bug
needs info
0. Needs triage
feature: authentication
stale
25-feedback
### ⚠️ This issue respects the following points: ⚠️
- [X] This is a **bug**, no… t a question or a configuration/webserver/proxy issue.
- [X] This issue is **not** already reported on [Github](https://github.com/nextcloud/server/issues?q=is%3Aopen+is%3Aissue+label%3Abug) OR [Nextcloud Community Forum](https://help.nextcloud.com/) _(I've searched it)_.
- [X] Nextcloud Server **is** up to date. See [Maintenance and Release Schedule](https://github.com/nextcloud/server/wiki/Maintenance-and-Release-Schedule) for supported versions.
- [X] I agree to follow Nextcloud's [Code of Conduct](https://nextcloud.com/contribute/code-of-conduct/).
### Bug description
I have set up a Nitrokey 3C security key for my user in a managed Nextcloud instance for passwordless login in my users settings in the "security" section. The setup worked and the key is shown with the name I have given it.

However, when I try to login without a password by selecting "login with a device" on the login screen after entering my account mail address Nextcloud is telling me "Your account is not set up for passwordless login". (please note: the nextcloud instance is in German and I cannot change it so the wording might be slightly different).
Also, I didn't find any information about this particular error message or passwordless login in general in the official documentation so I don't know if I might have to set up anything else to make it work.
### Steps to reproduce
1. Set up a Nitrokey 3C as security key for passwordless login
2. Logout and go to the login page
3. Select "login with a device"
4. Enter account mail address
5. Confirm
### Expected behavior
Nextcloud should start passwordless authentication and make Firefox ask me to touch my key to login.
### Installation method
None
### Nextcloud Server version
25
### Operating system
None
### PHP engine version
None
### Web server
None
### Database engine version
None
### Is this bug present after an update or on a fresh install?
None
### Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
### What user-backends are you using?
- [ ] Default user-backend _(database)_
- [ ] LDAP/ Active Directory
- [ ] SSO - SAML
- [ ] Other
### Configuration report
_No response_
### List of activated Apps
_No response_
### Nextcloud Signing status
_No response_
### Nextcloud Logs
_No response_
### Additional info
Since this is a Managed instance where I only have a regular user account I cannot get additional information besides Nextcloud version which is 25.0.7.1
I commented on it and I will see if it can be reopened or if I need to open another.
FredL
November 11, 2023, 8:16pm
5
The bug report has been reopened!
FredL
November 24, 2023, 6:05pm
6