mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-08-11 05:24:45 -05:00
Added support for OAuth 2 authentication. Fixes #5940
Initial patch sent by: Florian Sabonchi
This commit is contained in:
committed by
Akshay Joshi
parent
fff4060b31
commit
48ca83f31d
@@ -97,6 +97,7 @@ from regression.python_test_utils import test_utils
|
||||
from regression.python_test_utils.csrf_test_client import TestClient
|
||||
|
||||
config.SETTINGS_SCHEMA_VERSION = SCHEMA_VERSION
|
||||
from pgadmin.utils.constants import LDAP
|
||||
|
||||
# Override some other defaults
|
||||
from logging import WARNING
|
||||
@@ -117,7 +118,7 @@ if config.SERVER_MODE is True:
|
||||
app.config['WTF_CSRF_ENABLED'] = True
|
||||
|
||||
# Authentication sources
|
||||
app.PGADMIN_EXTERNAL_AUTH_SOURCE = 'ldap'
|
||||
app.PGADMIN_EXTERNAL_AUTH_SOURCE = LDAP
|
||||
|
||||
app.test_client_class = TestClient
|
||||
test_client = app.test_client()
|
||||
|
||||
Reference in New Issue
Block a user