Class: Unmagic::Passkeys::WebAuthn::Current

Inherits:
ActiveSupport::CurrentAttributes
  • Object
show all
Defined in:
lib/unmagic/passkeys/web_authn/current.rb

Overview

Action Pack WebAuthn Current Attributes

Thread-isolated request-scoped attributes for WebAuthn ceremonies. These are set automatically by Unmagic::Passkeys::Request at the start of each request and consumed by the registration/authentication flows.

Attributes

host

The relying party identifier (typically request.host). Used as the default RelyingParty ID.

origin

The expected origin (typically request.base_url). Validated against the origin field in the authenticator’s client data.