summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Authentication/WebAuthn/Manager.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/private/Authentication/WebAuthn/Manager.php b/lib/private/Authentication/WebAuthn/Manager.php
index cc3e9aba1cc..4415badc9b0 100644
--- a/lib/private/Authentication/WebAuthn/Manager.php
+++ b/lib/private/Authentication/WebAuthn/Manager.php
@@ -107,7 +107,11 @@ class Manager {
$excludedPublicKeyDescriptors = [
];
- $authenticatorSelectionCriteria = new AuthenticatorSelectionCriteria();
+ $authenticatorSelectionCriteria = new AuthenticatorSelectionCriteria(
+ null,
+ false,
+ AuthenticatorSelectionCriteria::USER_VERIFICATION_REQUIREMENT_DISCOURAGED
+ );
return new PublicKeyCredentialCreationOptions(
$rpEntity,
@@ -186,7 +190,8 @@ class Manager {
random_bytes(32), // Challenge
60000, // Timeout
$this->stripPort($serverHost), // Relying Party ID
- $registeredPublicKeyCredentialDescriptors // Registered PublicKeyCredentialDescriptor classes
+ $registeredPublicKeyCredentialDescriptors, // Registered PublicKeyCredentialDescriptor classes
+ AuthenticatorSelectionCriteria::USER_VERIFICATION_REQUIREMENT_DISCOURAGED
);
}