Skip to content

Commit

Permalink
🔧 Add missing settings for TWO_FACTOR_WEBAUTHN
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenbal committed Jun 13, 2024
1 parent baf9e53 commit d957842
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions open_api_framework/conf/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,11 @@ def init_sentry(before_send: Callable | None = None):

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

0 comments on commit d957842

Please sign in to comment.