prefer built-in platform passkeys
This commit is contained in:
parent
c80f35b32c
commit
73077e760c
1 changed files with 2 additions and 0 deletions
|
|
@ -21,6 +21,7 @@ from webauthn import (
|
|||
verify_registration_response,
|
||||
)
|
||||
from webauthn.helpers.structs import (
|
||||
AuthenticatorAttachment,
|
||||
AuthenticatorSelectionCriteria,
|
||||
PublicKeyCredentialDescriptor,
|
||||
ResidentKeyRequirement,
|
||||
|
|
@ -202,6 +203,7 @@ def registration_options(session: Session, settings: Settings) -> dict[str, Any]
|
|||
user_display_name="Администратор Дзен-ассистента",
|
||||
exclude_credentials=existing,
|
||||
authenticator_selection=AuthenticatorSelectionCriteria(
|
||||
authenticator_attachment=AuthenticatorAttachment.PLATFORM,
|
||||
resident_key=ResidentKeyRequirement.PREFERRED,
|
||||
user_verification=UserVerificationRequirement.REQUIRED,
|
||||
),
|
||||
|
|
|
|||
Loading…
Reference in a new issue