NC31 FIDO2/webauthn stopped working

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.
In the nextcloud.log (loglevel = 0) you can find:

{"reqId":"Z8FRoyF1TPO1rrGTsgZ1CgAAigE","level":0,"time":"2025-02-28T06:03:15+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":false,"app":"PHP","method":"PUT","url":"/ocs/v2.php/apps/user_status/api/v1/heartbeat?format=json","message":"Creation of dynamic property OCA\\Extract\\AppInfo\\Application::$appName is deprecated at /var/www/nextcloud/apps/extract/lib/AppInfo/Application.php#35","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0","version":"31.0.0.18","data":{"app":"PHP"}}
{"reqId":"Z8FRoyF1TPO1rrGTsgZ1CwAAjQg","level":0,"time":"2025-02-28T06:03:16+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":false,"app":"PHP","method":"GET","url":"/index.php/settings/api/personal/webauthn/registration","message":"Creation of dynamic property OCA\\Extract\\AppInfo\\Application::$appName is deprecated at /var/www/nextcloud/apps/extract/lib/AppInfo/Application.php#35","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0","version":"31.0.0.18","data":{"app":"PHP"}}
{"reqId":"Z8FRoyF1TPO1rrGTsgZ1CwAAjQg","level":0,"time":"2025-02-28T06:03:16+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"me","app":"settings","method":"GET","url":"/index.php/settings/api/personal/webauthn/registration","message":"Starting WebAuthn registration","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0","version":"31.0.0.18","data":{"app":"settings"}}

In the firefox browser console:

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"
​
<prototype>: Object { … }
index.mjs:45:16
[DEBUG] settings: Start webauthn registration 
Object { app: "settings", uid: "me", level: 0 }
app: "settings"
​level: 0
​uid: "me"
​
<prototype>: 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"

I searched Github and help.nextcloud and searched all posts in question, but none solved it.
Does anyone have any advice or ideas?

Daniel

(Translated with deepl.com (free version))

Hello Davodego,

I can confirm I can’t register new webauthn device. same error in FF console

[ERROR] settings: Unexpected TypeError
[ERROR] settings: Unexpected TypeError "e is undefined" 
Object { app: "settings", uid: "admin", level: 2, error: TypeError }
index.mjs:54:16
    log index.mjs:54
    error index.mjs:72
    credential WebAuthnRegistrationSerice.ts:24
    start AddDevice.vue:133
    VueJS 4
        cn
        n
        cn
        $emit
    click NcButton.mjs:231
    VueJS 39
        cn
        n
        _wrapper
    (Async: EventListener.handleEvent)
        Pr
        kt
        Rr
        _
        h
        Ti
        _update
        a
        get
        e
        mount
        $mount
        init
        h
        h
        f
        h
        Ti
        _update
        a
        get
        e
        mount
        $mount
        init
        h
        h
        f
        h
        Ti
        _update
        a
        get
        e
        mount
        $mount
    74308 main-personal-webauth.js:24
    Webpack 5
        o
        s
        O
        <anonymous>
        <anonymous>

would you mind filing a Github issue? Please search existing issues matching your topic before filing a new one. Please reference the issue here as well.

Thank you and have a good day.
wwe

1 Like

Bug report opened on Github.

2 Likes

Not fixed with NC 31.0.1.

I also want to buy one - which one do you have?