Skip to content

Commit cf44528

Browse files
authored
Merge pull request #31 from maykinmedia/issue/add-missing-two-factor-setting
🔧 Add missing settings for TWO_FACTOR_WEBAUTHN
2 parents baf9e53 + d957842 commit cf44528

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

open_api_framework/conf/base.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,11 @@ def init_sentry(before_send: Callable | None = None):
632632

633633
# we run the admin site monkeypatch instead.
634634
TWO_FACTOR_PATCH_ADMIN = False
635+
# Relying Party name for WebAuthn (hardware tokens)
636+
TWO_FACTOR_WEBAUTHN_RP_NAME = f"{PROJECT_DIRNAME} - admin"
637+
# use platform for fingerprint readers etc., or remove the setting to allow any.
638+
# cross-platform would limit the options to devices like phones/yubikeys
639+
TWO_FACTOR_WEBAUTHN_AUTHENTICATOR_ATTACHMENT = "cross-platform"
635640
# add entries from AUTHENTICATION_BACKENDS that already enforce their own two-factor
636641
# auth, avoiding having some set up MFA again in the project.
637642
MAYKIN_2FA_ALLOW_MFA_BYPASS_BACKENDS = [

0 commit comments

Comments
 (0)