authentik icon indicating copy to clipboard operation
authentik copied to clipboard

WebAuthn not working with 2026.5.4 when using non-default locale

Open nicedevil007 opened this issue 4 months ago • 38 comments

Describe the bug

Hey guys,

I recently updated to 2026.5.4 and then I tried to login with my yubikey. The Windows Hello popup appears, I select the Security key option and I enter my pin for my YubiKey then touch my YubiKey (5C is the model) and the Windows Hello popup appears again in a loop.

Image

If I do a rollback to 2026.5.3 it let me login without the reappearing window. So it seems to be a bug in this version with some settings the lead to this behaviour.

I have a 2nd setup on a different site with 2026.5.4 and the same login flow/stages and it still let me login.

How to reproduce

Everything described above, isn't it?

Expected behavior

I should be logged in and see the authentik User GUI.

Screenshots

No response

Additional context

No response

Deployment Method

Docker

Version

2026.5.4

Relevant log output


nicedevil007 avatar Jul 08 '26 18:07 nicedevil007

I can't replicate this on Windows or macOS with a Yubikey 5c. Tested with a fresh 2026.5.4 deployment, and a deployment where the yubikey was registered on 2026.5.3 and then upgraded to 2026.5.4.

Can you please share some more information on the MFA validation stage that you're using on the problem deployment?

dewi-tik avatar Jul 09 '26 10:07 dewi-tik

here a screenshot of my flow: Image

here the validation stage: Image Image Image Image

here the expression policy:

Image

nicedevil007 avatar Jul 09 '26 14:07 nicedevil007

My flow looks almost identical to yours. The only change I'm aware of in relation to security keys for .4 is that the "Prevent duplicate keys" option on the webauthn setup stage is now set to False by default. But this shouldn't affect simply authenticating with a security key.

I've tested a few other flows on Windows and macOS and still can't replicate.

Are you able to replicate the same problem from another computer? It would also be interesting to know if this only affects that specific yubikey, or whether you can replicate with another security key or passkey.

If possible, could you also provide browser console logs?

dewi-tik avatar Jul 09 '26 15:07 dewi-tik

My flow looks almost identical to yours. The only change I'm aware of in relation to security keys for .4 is that the "Prevent duplicate keys" option on the webauthn setup stage is now set to False by default. But this shouldn't affect simply authenticating with a security key.

I've tested a few other flows on Windows and macOS and still can't replicate.

Are you able to replicate the same problem from another computer? It would also be interesting to know if this only affects that specific yubikey, or whether you can replicate with another security key or passkey.

If possible, could you also provide browser console logs?

Hi again and thank you for taking time to help me out.

I tested this on Microsoft Edge, Google Chrome and Brave on Windows 11. We also tested it on a iPad with Safari. Same there.

Console Logs can be Shared tomorrow :)

nicedevil007 avatar Jul 09 '26 17:07 nicedevil007

Here we go:

focus.ts:82 Skipping focus, no target null
focus.ts:82 Skipping focus, no target null
middleware.ts:40 [DEBUG] (api/xxxx.xxxxxx.de): POST /api/v3/flows/executor/xxxxx-passwordless-flow/?query=id_token_hint%3D....................a4
AuthenticatorValidateStageWebAuthn.ts:114

I used the flow inspector as well:

Current plan context
{
    "goauthentik.io/stages/authenticator_webauthn/challenge": "b'/\\xef\\xd1\\x12\\x94\\x04kE\\x03\\xa2\\xfc\\xe0R\\xd1]#\\xca\\x88\\x10pV\\xe3|\\xab1\\xe25F\\x93Z\\xde\\x1a5\\xc9\\xa5\\xecM3\\xed\\x05\\x8cu x\\xa2Rt-\\xf1\\xef\\xad\\x80\\xce\\xce,\\xfc\\xf9\\xdd?\\xeb\\x1d\\xdd\\x1e\\xd4'",
    "goauthentik.io/stages/authenticator_validate/device_challenges": [
        {
            "device_class": "webauthn",
            "device_uid": "13",
            "challenge": {
                "challenge": "L-_RE....1A",
                "timeout": 60000,
                "rpId": "xxxxx.xxxxx.de",
                "allowCredentials": [
                    {
                        "id": "n4....E8",
                        "type": "public-key"
                    },
                    {
                        "id": "s3....5Z",
                        "type": "public-key"
                    },
                    {
                        "id": "VZ....O9",
                        "type": "public-key"
                    }
                ],
                "userVerification": "required"
            },
            "last_used": "2026-07-02T05:28:57.323486Z"
        }
    ],
    "auth_method": "auth_webauthn_pwl",
    "auth_method_args": {
        "mfa_devices": [
            {
                "app": "authentik_stages_authenticator_webauthn",
                "model_name": "webauthndevice",
                "pk": 16,
                "name": "YubiKey ...."
            }
        ],
        "device": {
            "app": "authentik_stages_authenticator_webauthn",
            "model_name": "webauthndevice",
            "pk": 16,
            "name": "YubiKey ...."
        },
        "device_type": {
            "app": "authentik_stages_authenticator_webauthn",
            "model_name": "webauthndevicetype",
            "pk": "a2....1c",
            "name": "WebAuthn device type YubiKey 5 Series with NFC (a....c)"
        },
        "known_device": true
    },
    "pending_user": {
        "username": "....",
        "pk": 73,
        "email": "[email protected]"
    }
}

nicedevil007 avatar Jul 10 '26 06:07 nicedevil007

It is also failing for me. In my case the FIDO2 Key is recognized but the user remains anonymous:

{
   "action": "login_failed",
   "auth_via": "unauthenticated",
   "client_ip": "10.x.x.x",
   "context": {
      "auth_method_args": {
         "device": {
            "app": "authentik_stages_authenticator_webauthn",
            "model_name": "webauthndevice",
            "name": "My FIDO2 Key",
            "pk": 22
         },
         "device_class": "webauthn",
         "device_type": {
            "app": "authentik_stages_authenticator_webauthn",
            "model_name": "webauthndevicetype",
            "name": "WebAuthn device type Feitian ePass FIDO2-NFC Authenticator (ee041...64)",
            "pk": "ee041bce...fd6418464"
         }
      },
      "http_request": {
         "args": {
            "next": "/"
         },
         "method": "POST",
         "path": "/api/v3/flows/executor/passwordless-authentication-flow/",
         "request_id": "29ade...4a5b30b4ce8",
         "user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:152.0) Gecko/20100101 Firefox/152.0"
      },
      "stage": {
         "app": "authentik_stages_authenticator_validate",
         "model_name": "authenticatorvalidatestage",
         "name": "WebAuthn",
         "pk": "9a4a5430...ebd1c865"
      },
      "username": ""
   },
   "domain_url": "auth.my.domain",
   "event": "Created Event",
   "host": "auth.my.domain",
   "level": "info",
   "logger": "authentik.events.models",
   "pid": 27741,
   "request_id": "29ade6...5b30b4ce8",
   "schema_name": "public",
   "timestamp": "2026-07-09T09:42:48.804370",
   "user": {
      "email": "",
      "is_anonymous": true,
      "pk": 1,
      "username": "AnonymousUser"
   }
}

jesusdf avatar Jul 10 '26 07:07 jesusdf

For me it is not working neither with webauthn keepass or windows hello. It works in Microsoft Edge

petr-prikryl avatar Jul 10 '26 20:07 petr-prikryl

Can confirm the same for Windows Hello (Face Recognition or FIngerprint) in Chrome and Edge (Including YubiKeys)

KarloDerEchte avatar Jul 11 '26 18:07 KarloDerEchte

Same here with 1password on various browsers on Mac and on iOS. I reverted to 2026.5.3 and no issue anymore.

OPTips avatar Jul 11 '26 19:07 OPTips

https://docs.goauthentik.io/add-secure-apps/flows-stages/stages/identification/#passkey-autofill-webauthn-conditional-ui This is not working for me witth Bitwarden and KeepassXC. As far as I see the user is empty since 2026.5.4.

I then changed the default login flow to ask for passkey after enter of username and skip password if that was successful. Which is also somewhere in the docs but I couldn't find it anymore. After entering the username Passkey works normal.

jsddsfoh avatar Jul 12 '26 08:07 jsddsfoh

Wouldn't selecting "User verification is preferred if available, but not required" solve this?

KingHenry6666 avatar Jul 13 '26 03:07 KingHenry6666

Wouldn't selecting "User verification is preferred if available, but not required" solve this?

Isn't this the Option that requires is to enter the PIN for the YubiKey or the touch Event? If yes than this is not a Solution.

nicedevil007 avatar Jul 13 '26 04:07 nicedevil007

I can reproduce the exact same behaviour as @nicedevil007 when using WebKit Browsers with already existing authentik cookies. It seems to work on Chromium-based browsers.

hutt avatar Jul 13 '26 10:07 hutt

I can reproduce the exact same behaviour as @nicedevil007 when using WebKit Browsers with already existing authentik cookies. It seems to work on Chromium-based browsers.

That was What a friend of me tested as well. Then we logged out After HE successfull logged in and then HE wasnt able to log back in with yubikey. Sry for autocorrect 🙈 mobile phone Here.

nicedevil007 avatar Jul 13 '26 10:07 nicedevil007

I got this issue with Brave 😕

But it works if I remove cookies.

OPTips avatar Jul 13 '26 10:07 OPTips

I got this issue with Brave 😕

But it works if I remove cookies.

I already tried this and ofc with an InPrivate Windows as well. Still not helping :(

nicedevil007 avatar Jul 13 '26 11:07 nicedevil007

Yep, not working too since latest version with Windows Hello on Brave

Yaya48 avatar Jul 13 '26 11:07 Yaya48

Could we please get server logs from anyone who's experiencing this.

dewi-tik avatar Jul 13 '26 13:07 dewi-tik

Could we please get server logs from anyone who's experiencing this.

can you share quick information where/what logs I should collect for you?

nicedevil007 avatar Jul 13 '26 13:07 nicedevil007

Server container logs from when you're replicating the issue. This doc describes how you can capture the logs: https://docs.goauthentik.io/troubleshooting/logs/

dewi-tik avatar Jul 13 '26 13:07 dewi-tik