#26544·authentik

Samsung Pass enrollment fails with DIRECT attestation due to ASN.1 certificate parsing error

Author: 77ecmaCreated Sep 29, 2026Updated Sep 29, 2026
Labelsbugtriage

Describe the bug

Passkey enrollment fails when Samsung Pass is selected as the passkey provider.

The WebAuthn enrollment flow starts normally, but after completing the Samsung Pass prompt, authentik displays:

"Something went wrong! Please try again later."

The server logs show an exception while verifying a packed WebAuthn attestation:

ValueError: error parsing asn1 value: ParseError { kind: ExtraData, location: ["Certificate::tbs_cert", "TbsCertificate::signature_alg"] }

The exception occurs in the WebAuthn registration verification path:

authentik/stages/authenticator_webauthn/stage.py -> validate_response() webauthn/registration/verify_registration_response.py -> verify_registration_response() webauthn/registration/formats/packed.py -> verify_packed()

The issue appears to be specific to Samsung Pass enrollment.

On the same Samsung device:

  • Samsung Pass -> authentik: FAIL
  • Google Password Manager -> authentik: SUCCESS
  • Samsung Pass -> webauthn.io: SUCCESS

The behavior is also independent of the browser. It is reproducible with both Chrome and Samsung Internet. Google Password Manager works with authentik in both browsers, while Samsung Pass fails.

During investigation I also noticed that authentik 2026.8.2 explicitly requests:

attestation=AttestationConveyancePreference.DIRECT

in authentik/stages/authenticator_webauthn/stage.py.

For comparison, webauthn.io requests "attestation": "none" in the successful Samsung Pass registration test.

This may therefore be related to verification/parsing of the packed X.509 attestation returned by Samsung Pass when direct attestation is requested.

How to reproduce

  1. Sign in to authentik.
  2. Open the user settings and start enrollment of a new WebAuthn/Passkey credential.
  3. Select Samsung Pass as the passkey provider.
  4. Complete the Samsung Pass biometric/authentication prompt.
  5. The enrollment fails and authentik displays "Something went wrong! Please try again later."
  6. Check the authentik server log.

The server reports:

ValueError: error parsing asn1 value: ParseError { kind: ExtraData, location: ["Certificate::tbs_cert", "TbsCertificate::signature_alg"] }

Control tests on the same device:

  • Repeat the enrollment in authentik but select Google Password Manager instead of Samsung Pass -> enrollment succeeds.
  • Use Samsung Pass to create a new passkey on webauthn.io -> enrollment succeeds.
  • Repeat authentik enrollment using Samsung Internet instead of Chrome -> Samsung Pass still fails, while Google Password Manager succeeds.

Expected behavior

Samsung Pass should be able to complete WebAuthn/Passkey enrollment successfully, just as Google Password Manager does on the same device. If the registration cannot be accepted, authentik should handle the attestation response gracefully rather than raising an unhandled X.509/ASN.1 parsing exception.

Screenshots

No response

Additional context

Environment / client:

  • Device model: Samsung SM-S948B
  • Android: 16
  • One UI: 8.5
  • Android security patch: August 5, 2026
  • Samsung Pass: 5.2.10.10
  • Samsung Authentication Framework: 5.2.10.3
  • Autofill with Samsung Pass: 5.2.11.1
  • Samsung Internet: 30.0.0.67
  • Also reproduced with Chrome

authentik container environment:

  • Python: 3.14.7
  • webauthn: 3.0.0
  • cryptography: 50.0.0

Additional A/B testing on the same Samsung device:

  • authentik + Samsung Pass: FAIL
  • authentik + Google Password Manager: SUCCESS
  • webauthn.io + Samsung Pass: SUCCESS

The authentik failure is reproducible in both Chrome and Samsung Internet, so it does not appear to be browser-specific.

I inspected the WebAuthn creation options used by webauthn.io during the successful Samsung Pass test. It explicitly sends:

"attestation": "none"

authentik 2026.8.2 generates its registration options with:

attestation=AttestationConveyancePreference.DIRECT

No authentik source code or Python dependencies were modified during these tests.

Deployment Method

Docker

Version

2026.8.2

Relevant log output

bash
ValueError('error parsing asn1 value: ParseError { kind: ExtraData, location: ["Certificate::tbs_cert", "TbsCertificate::signature_alg"] }')

Traceback (most relevant frames):

authentik/stages/authenticator_webauthn/stage.py, line 82, in validate_response
    verification = verify_registration_response(...)

webauthn/registration/verify_registration_response.py, line 241, in verify_registration_response
    verify_packed(...)

webauthn/registration/formats/packed.py, line 66, in verify_packed
    ...