Skip to content

WebAuthn: credential registration fails with an unknown credential type error #17164

Open
@ltanguy

Description

@ltanguy

Describe the bug
When following the steps described in the documentation, the credential registration fails with the following exception:
java.lang.IllegalArgumentException: Cannot convert unknown credential type org.springframework.security.web.webauthn.api.PublicKeyCredentialType@4cfbb790 to webauthn4j

Expected behavior
The problem seems to originate from this line.
The debugger indicates that the type of the request I generate is indeed "public-key", but as the two object instances are different this test fails.
The error message could be clearer by referencing the value of the PublicKeyCredentialType object

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions