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:
Khushboo Vashi authored and Akshay Joshi committed 2021-01-14 13:46:48 +05:30
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
+1 -1
View File
@@ -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)