From 73077e760c8bf09d25d5d08d3590130c1d9289a6 Mon Sep 17 00:00:00 2001 From: nstarikov Date: Tue, 11 Aug 2026 16:16:20 +0300 Subject: [PATCH] prefer built-in platform passkeys --- dzen-assistant/app/auth.py | 2 ++ 1 file changed, 2 insertions(+) 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, ),