diff --git a/dzen-assistant/app/auth.py b/dzen-assistant/app/auth.py index cc4d5a4..ee6215b 100644 --- a/dzen-assistant/app/auth.py +++ b/dzen-assistant/app/auth.py @@ -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, ),