Fixed Kerberos authentication issue which is broken due to 2FA.

refs #6543
This commit is contained in:
Yogesh Mahajan 2021-12-06 20:14:39 +05:30 committed by Akshay Joshi
parent 950809ee55
commit 48dc4bacc4
2 changed files with 3 additions and 3 deletions

View File

@ -25,8 +25,8 @@ modify the values for the following parameters.
:class: longtable
:widths: 35, 55
"MFA_ENABLED","The default value for this parameter is False.
To enable 2FA, set the value to *True*"
"MFA_ENABLED","The default value for this parameter is True.
To disable 2FA, set the value to *False*"
"SUPPORTED_MFA_LIST", "Set the authentication methods to be supported "
"MFA_EMAIL_SUBJECT", "<APP_NAME> - Verification Code e.g. pgAdmin 4 -
Verification Code"

View File

@ -42,7 +42,7 @@ def get_logout_url() -> str:
session['auth_source_manager']['current_source'] == \
KERBEROS:
return _URL_WITH_NEXT_PARAM.format(url_for(
'authenticate.kerberos_logout'), url_for(BROWSER_INDEX))
'kerberos.logout'), url_for(BROWSER_INDEX))
return _URL_WITH_NEXT_PARAM.format(
url_for('security.logout'), url_for(BROWSER_INDEX))