AshAuthentication.Phoenix.Test.WebAuthnHelpers (ash_authentication_phoenix v3.0.0-rc.6)

View Source

Test helpers for WebAuthn component tests.

These helpers build a mock AshAuthentication.Strategy.WebAuthn struct used only for rendering tests (gated by the :webauthn_strategy_required tag).

The mock uses Example.Accounts.User as its :resource because the component only needs the resource for subject-name derivation via Info. Actual WebAuthn ceremony tests (credential creation, sign-in) are not covered here — those belong in the upstream ash_authentication package alongside a dedicated fixture like Example.UserWithWebAuthn.

Summary

Functions

Returns a WebAuthn strategy struct for component testing.

Functions

mock_webauthn_strategy(overrides \\ %{})

Returns a WebAuthn strategy struct for component testing.