Class: Unmagic::Passkeys::Engine
- Inherits:
-
Rails::Engine
- Object
- Rails::Engine
- Unmagic::Passkeys::Engine
- Defined in:
- lib/unmagic/passkeys/engine.rb
Overview
Integrates the WebAuthn and passkey subsystems into a host Rails app. We deliberately do NOT isolate_namespace: passkeys is an injected concern — has_passkeys goes onto the host’s models, the form helpers into its views, and a stateless challenge endpoint into its routes.
Configuration
# config/initializers/passkeys.rb
config.unmagic_passkeys.web_authn. = { attestation: :none }
config.unmagic_passkeys.web_authn. = { user_verification: :required }
config.unmagic_passkeys.routes_prefix = "/unmagic/passkeys"