mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-11-03 12:49:23 -06:00
Added support for Two-factor authentication for improving security. Fixes #6543
This commit is contained in:
1 parent
fe096116be
commit
36c9eb3dfd
56 files changed
+2770
-119
No files matched your search
@@ -743,6 +743,29 @@ WEBSERVER_AUTO_CREATE_USER = True
|
||||
|
||||
WEBSERVER_REMOTE_USER = 'REMOTE_USER'
|
||||
|
||||
##########################################################################
|
||||
# Two-factor Authentication Configuration
|
||||
##########################################################################
|
||||
|
||||
# Set it to True, to enable the two-factor authentication
|
||||
MFA_ENABLED = True
|
||||
|
||||
# Set it to True, to ask the users to register forcefully for the
|
||||
# two-authentication methods on logged-in.
|
||||
MFA_FORCE_REGISTRATION = False
|
||||
|
||||
# pgAdmin supports Two-factor authentication by either sending an one-time code
|
||||
# to an email, or using the TOTP based application like Google Authenticator.
|
||||
MFA_SUPPORTED_METHODS = ["email", "authenticator"]
|
||||
|
||||
# NOTE: Please set the 'Mail server settings' to use 'email' as two-factor
|
||||
# authentication method.
|
||||
|
||||
# Subject for the email verification code
|
||||
# Default: <APP_NAME> - Verification Code
|
||||
# e.g. pgAdmin 4 - Verification Code
|
||||
MFA_EMAIL_SUBJECT = None
|
||||
|
||||
##########################################################################
|
||||
# PSQL tool settings
|
||||
##########################################################################
|
||||
|
||||
Reference in new issue
Block a user