Require resident keys by default

This commit is contained in:
Stanko K.R.
2026-03-16 17:06:32 +01:00
parent 1e245fbe45
commit 1cf1f598e1
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ class ActionPack::Railtie < Rails::Railtie
initializer "action_pack.passkey.holder" do
ActiveSupport.on_load(:active_record) do
# We need this shim because Holder is namespaced under Passkey, which is an ActiveRecort
# We need this shim because Holder is namespaced under Passkey, which is an ActiveRecord
# and can't be required before ActiveRecord is loaded.
def self.has_passkeys(**options, &block)
include ActionPack::Passkey::Holder
@@ -49,7 +49,7 @@ class ActionPack::WebAuthn::PublicKeyCredential::CreationOptions < ActionPack::W
attribute :id
attribute :name
attribute :display_name
attribute :resident_key, default: :preferred
attribute :resident_key, default: :required
attribute :exclude_credentials, default: -> { [] }
attribute :attestation, default: :none
attribute :challenge_expiration, default: -> { Rails.configuration.action_pack.web_authn.creation_challenge_expiration }