mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-11-02 08:10:03 -06:00
1) Added support for Kerberos authentication, using SPNEGO to forward the Kerberos tickets through a browser. Fixes #5457
2) Fixed incorrect log information for AUTHENTICATION_SOURCES. Fixes #5829
This commit is contained in:
1 parent
9a47e574e3
commit
6ead597b43
22 files changed
+474
-40
No files matched your search
@@ -101,7 +101,8 @@ class TestClient(testing.FlaskClient):
|
||||
|
||||
return csrf_token
|
||||
|
||||
def login(self, email, password, _follow_redirects=False):
|
||||
def login(self, email, password, _follow_redirects=False,
|
||||
headers=None):
|
||||
if config.SERVER_MODE is True:
|
||||
res = self.get('/login', follow_redirects=True)
|
||||
csrf_token = self.fetch_csrf(res)
|
||||
@@ -113,7 +114,8 @@ class TestClient(testing.FlaskClient):
|
||||
email=email, password=password,
|
||||
csrf_token=csrf_token,
|
||||
),
|
||||
follow_redirects=_follow_redirects
|
||||
follow_redirects=_follow_redirects,
|
||||
headers=headers
|
||||
)
|
||||
self.csrf_token = csrf_token
|
||||
|
||||
|
||||
@@ -117,9 +117,9 @@ if config.SERVER_MODE is True:
|
||||
app.config['WTF_CSRF_ENABLED'] = True
|
||||
|
||||
# Authentication sources
|
||||
app.PGADMIN_DEFAULT_AUTH_SOURCE = 'internal'
|
||||
app.PGADMIN_EXTERNAL_AUTH_SOURCE = 'ldap'
|
||||
|
||||
|
||||
app.test_client_class = TestClient
|
||||
test_client = app.test_client()
|
||||
test_client.setApp(app)
|
||||
|
||||
Reference in new issue
Block a user