-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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]: NC31 FIDO2/webauthn stopped working after update #51137
Comments
I have the same symptom that device login via twofactor_webauthn app stopped working after nextcloud server upgrade from 30 to 31. Extract from nextcloud log after yubikey registration attempt for 'Passwordless Authentication', which fails with GUI message 'Error: Could not register device':
Extract from nextcloud log on debug level, after attempting device login:
Note that the same yubikey can be registered as U2F security key and successfully used as second factor, but fails to be registered and used as WebAuthn device. Server is running with Debian 12, PostgreSQL 15, Apache 2.4.62, PHP 8.2 App list:
|
Bug description
Since the update to NC 31.0.0.18, passwordless login with webauthn (FIDO2) no longer works for me.
I wanted to log in with my Yubikey, the login screen showed no reaction and the Yubikey did not flash either. I logged in with my password, deleted the configuration on the security page and tried to create the passwordless login with my Yubikey again. But that didn’t work.
An error message appears: “Error, the device could not be registered”. Regardless of whether the Yubiky is plugged into the USB port or not.
U2FA with security key is not affected. This works with a Yubikey.
Steps to reproduce
1.Go to Personal Settings > Security
2. Choose Login without Password > Click "Add Webauthn Device"
3. An error Message was Displayed "Error, the device could not be registered"
Expected behavior
The webauthn device is linked to the user's login for passwordless login.
Nextcloud Server version
31
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.3
Web server
Apache (supported)
Database engine version
PostgreSQL
Is this bug present after an update or on a fresh install?
Upgraded to a MAJOR version (ex. 31 to 32)
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
Browser console error:
Starting WebAuthn registration AddDevice.vue:129
[DEBUG] settings: Fetching webauthn registration data
Object { app: "settings", uid: "daniel", level: 0 }
app: "settings"
level: 0
uid: "me"
: Object { … }
index.mjs:45:16
[DEBUG] settings: Start webauthn registration
Object { app: "settings", uid: "me", level: 0 }
app: "settings"
level: 0
uid: "me"
: Object { … }
index.mjs:45:16
[ERROR] settings: Unexpected TypeError "e is undefined"
Object { app: "settings", uid: "me", level: 0, error: TypeError }
app: "settings"
error: TypeError: e is undefined
level: 0
uid: "me"
The text was updated successfully, but these errors were encountered: