Require resident keys by default
This commit is contained in:
@@ -46,8 +46,8 @@ class ActionPack::WebAuthn::PublicKeyCredential::CreationOptionsTest < ActiveSup
|
||||
{ type: "public-key", alg: -257 }
|
||||
], @options.as_json[:pubKeyCredParams]
|
||||
|
||||
assert_equal "preferred", @options.as_json[:authenticatorSelection][:residentKey]
|
||||
assert_equal false, @options.as_json[:authenticatorSelection][:requireResidentKey]
|
||||
assert_equal "required", @options.as_json[:authenticatorSelection][:residentKey]
|
||||
assert_equal true, @options.as_json[:authenticatorSelection][:requireResidentKey]
|
||||
assert_equal "preferred", @options.as_json[:authenticatorSelection][:userVerification]
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user