AshAuthentication.Phoenix.WebAuthn
(ash_authentication_phoenix v3.0.0-rc.6)
View Source
Helpers shared between the WebAuthn LiveView components.
Summary
Functions
Build a WebAuthn origin string from the LiveView socket's host_uri.
Functions
@spec origin_from_socket(Phoenix.LiveView.Socket.t()) :: String.t()
Build a WebAuthn origin string from the LiveView socket's host_uri.
Used to override the strategy's configured origin with the actual request origin during a ceremony, so dev/test environments don't need a hardcoded port baked into config.