Merge pull request #21917 from nextcloud/backport/21880/stable19
[stable19] Discourage webauthn user interaction
This commit is contained in:
commit
8e0158f064
|
@ -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
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue