Akshay Joshi
352eb15dc7
Fixed PEP8
2022-08-01 22:06:34 +05:30
Aditya Toshniwal
cb635f6706
Removing dynamic module loading and replacing it with static loading. Fixes #7492
...
Gets rid of all occurrences and usage of get_own_javascripts since it is no longer used.
2022-06-30 11:06:50 +05:30
Yogesh Mahajan
f28e8126af
Added support for Azure AD OAUTH2 authentication. Fixes #7325
2022-04-21 12:48:10 +05:30
Yogesh Mahajan
0957670d4e
Adds a new LDAP authentication configuration parameter that indicates the case sensitivity of the LDAP schema/server. Fixes #5836
2022-03-29 14:46:57 +05:30
Yogesh Mahajan
7b6469bd35
Fixed an issue where the error is shown on logout when the authentication source is oauth2. Fixes #7059
2022-03-15 16:38:54 +05:30
Dave Page
39bfb575da
Improve message wording.
2022-03-14 11:18:20 +00:00
Charlet, Christoph
aca97d9f57
Fixed an issue where pgadmin cannot connect to LDAP when STARTTLS is required before bind. Fixes #6991
2022-02-16 18:01:39 +05:30
Yogesh Mahajan
b539637426
Fixed an issue where a warning is flashed every time for an email address when
...
authentication sources are internal and ldap. Fixes #6999
2022-02-16 13:34:24 +05:30
Akshay Joshi
1013d7ccdd
Fixed code smell reported by SonarQube.
2022-01-20 16:58:21 +05:30
Akshay Joshi
e38c38cd58
Fixed following SonarQube code smells:
...
1) Remove this useless assignment to a variable.
2) Remove the unused local variable.
2022-01-12 14:53:19 +05:30
Akshay Joshi
2786f7ac5a
Update copyright notices for 2022
2022-01-04 13:54:25 +05:30
Yogesh Mahajan
48dc4bacc4
Fixed Kerberos authentication issue which is broken due to 2FA.
...
refs #6543
2021-12-06 20:14:39 +05:30
Ashesh Vashi
36c9eb3dfd
Added support for Two-factor authentication for improving security. Fixes #6543
2021-12-02 16:47:18 +05:30
Akshay Joshi
d644b4f94e
1) Replace Flask-BabelEx with Flask-Babel. Fixes #6088
...
2) Upgrade Flask to version 2. Fixes #7010
2021-11-24 17:22:57 +05:30
Khushboo Vashi
d4697e8f1c
Ensure that users should be able to modify the REMOTE_USER environment
...
variable as per their environment by introducing the new config parameter
WEBSERVER_REMOTE_USER.
Fixes #6953
2021-11-10 15:38:41 +05:30
Khushboo Vashi
a726635290
1) Added support for authentication via the web server (REMOTE_USER). Fixes #6657
...
2) Fixed OAuth2 integration redirect issue. Fixes #6719
Initial patch for 6657 sent by: Tom Schreiber
2021-10-12 14:52:30 +05:30
Akshay Joshi
7d07770244
Reverting 'Two-factor authentication' support as it cause OSX and docker build failures.
...
This reverts commit 787a441343
.
2021-09-29 13:24:18 +05:30
Ashesh Vashi
787a441343
Added support for Two-factor authentication for improving security. Fixes #6543
2021-09-28 17:47:00 +05:30
Khushboo Vashi
3786954a65
Added support for OAuth 2 authentication. Fixes #5940
...
Initial patch sent by: Florian Sabonchi
2021-09-09 12:40:53 +05:30
Nico Rikken
d13d2c6dda
Introduced OAUTH2_SCOPE variable for the Oauth2 scope configuration. Fixes #6627
2021-08-31 14:36:14 +05:30
Akshay Joshi
7798584e1c
Fixed an issue where columns with sequences get altered unnecessarily with a schema diff tool. Fixes #6564
2021-08-18 19:33:01 +05:30
Rahul Shirsat
ab04b30726
1. Unverified email id is getting locked.
...
2. Admin should be able to lock the user, as currently it only unlocks it via
user management dialog.
3. There were some indefinite login page loading issues when trying to log in
with invalid password, where it should redirect to the login page again instead.
refs #6337 (Initial patch by Khushboo Vashi)
2021-08-09 21:04:49 +05:30
Khushboo Vashi
78b041465e
Fixed an issue where even if the user is locked, he can reset the password and can login into pgAdmin. Fixes #6664
2021-08-09 14:24:26 +05:30
Akshay Joshi
025c98ced8
1) Flash warning message of N no of attempts left for the unsuccessful login attempt.
...
2) Updated some strings in the Preferences for the "Maximum column width" option.
2021-08-03 17:06:06 +05:30
Florian Sabonchi
a3d3c74e67
Ensure that the login account should be locked after N number of attempts. N is configurable using the 'MAX_LOGIN_ATTEMPTS' parameter. Fixes #6337
2021-07-22 12:24:43 +05:30
Khushboo Vashi
3590c9172c
Fixed an issue where the user unable to login with OAuth2 when LDAP & OAuth2 configured as login sources. Fixes #6594
2021-07-09 21:50:50 +05:30
Khushboo Vashi
5ee8045916
Informative error should be shown if Oauth2 profile does not have email id registered. Fixes #6590
2021-07-07 17:58:49 +05:30
Khushboo Vashi
48ca83f31d
Added support for OAuth 2 authentication. Fixes #5940
...
Initial patch sent by: Florian Sabonchi
2021-07-06 13:22:58 +05:30
Ashesh Vashi
9574f43f87
Refactor the registry class logic and remove duplicate code for the same functionality.
2021-06-24 11:30:11 +05:30
Khushboo Vashi
460fb7ec29
Fixed an issue where pgAdmin does not open after password reset in server mode. Fixes #6513
2021-06-10 22:55:31 +05:30
Khushboo Vashi
72f3730c34
Added support to connect PostgreSQL servers via Kerberos authentication. Fixes #6158
2021-05-03 16:10:45 +05:30
Khushboo Vashi
437f0df0f3
Ensure that the strings in the LDAP auth module are translatable. Fixes #6274
2021-04-08 18:15:34 +05:30
Akshay Joshi
3fc0cc3e92
Fixed SonarQube issues
2021-02-15 17:31:20 +05:30
Khushboo Vashi
c71315f8cd
1) Added RPM/DEB dependency for Kerberos to the server package.
...
2) Handle the OSError while importing the gssapi, it fixes the Windows error.
refs #5457
2021-01-20 18:09:07 +05:30
Akshay Joshi
9fa29457a4
Update copyright notice for ERD and Kerberos files.
2021-01-19 16:22:53 +05:30
Khushboo Vashi
c0ef0a893d
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
2021-01-18 16:32:10 +05:30
Akshay Joshi
f0debdd513
Revert "1) Added support for Kerberos authentication, using SPNEGO to forward the Kerberos tickets through a browser. Fixes #5457 "
...
This reverts commit 6ead597b43
.
2021-01-14 14:46:59 +05:30
Khushboo Vashi
6ead597b43
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
2021-01-14 13:46:48 +05:30
Akshay Joshi
b372f08a59
Update copyright notices for 2021
2021-01-04 15:34:45 +05:30
Aditya Toshniwal
b82e6dbdb8
1) Added email id validation on the login page.
...
2) Added validation for the file manager.
2020-09-11 19:55:19 +05:30
Akshay Joshi
ed1bd74301
Ensure that a valid error message should be displayed for an incorrect user or password.
2020-09-11 11:26:47 +05:30
Cyril Jouve
5a253f9053
Change the following to replace Python 2 code with Python 3:
...
1) Replace the deprecated unit test method.
2) Wraps filter usage in a list call.
3) Converts the old metaclass syntax to new.
4) Use range instead of xrange method.
5) Change Unicode to str.
6) Several other transformations.
7) Fixed change password test cases.
8) Use simplejson instead of plain JSON.
2020-08-31 16:45:31 +05:30
Romulo Rodriguez
e6bd085c15
Simplifies the search of the LDAP user name by adding to the user's search condition directly in the existing search filter.
2020-08-24 12:47:09 +05:30
Aditya Toshniwal
56cf64ad22
Fixed following SonarQube issues:
...
- Refactor functions to not always return the same value.
- Rename "cls" to "self" or add the missing "self" parameter.
- Remove useless assignment to variables.
2020-07-30 14:04:22 +05:30
Khushboo Vashi
645517d22d
Added support for LDAP anonymous binding. Fixes #5650
2020-07-20 15:30:06 +05:30
Khushboo Vashi
58b4c45d0c
Added support for LDAP authentication with different DN by setting the dedicated user for the LDAP connection. Fixes #5484
2020-07-06 19:35:55 +05:30
Dave Page
85e89c869a
Cleanup some code smells identified by SonarQube.
2020-06-10 16:42:59 +01:00
Khushboo Vashi
d1bdb178e2
Fixed an issue where if LDAP_SEARCH_BASE_DN is not set then, the value for LDAP_BASE_DN will be considered. Fixes #5487
2020-05-18 12:35:34 +05:30
Khushboo Vashi
d68e6bd892
Remove Python2 modules.
...
refs #5443
2020-05-08 12:28:21 +05:30
Aditya Toshniwal
370094274c
Fixed post-login redirect location when running in server mode under a non-default root. Fixes #5473
2020-05-04 15:00:45 +01:00
Khushboo Vashi
0f6abcc7fa
Fixed an issue where the user is not able to create a server if login with an LDAP account. Fixes #5439
...
Improved LDAP error messages.
2020-04-27 15:33:19 +05:30
Khushboo Vashi
b0464500ca
Ensure that the user should not be able to change the authentication source. Fixes #5419
...
Ensure error should be handled properly when LDAP user is created with the same name. Fixes #5420
Fixed an issue where an internal user is not created if the authentication source is set to internal and ldap. Fixes #5432
2020-04-22 18:47:13 +05:30
Ashesh Vashi
414e336852
[Authentication] Some of the base class functions are not static
...
function, but - methods. Hence - 'self' should be used, and not 'cls'.
Also - use a constant for duplicate string literal in LDAP
authentication implementation.
2020-04-14 18:43:04 +05:30
Ashesh Vashi
d9e95d13e6
[LDAP Authentication] Use more secure protocol TSL v1.2 for security reason
2020-04-08 11:57:01 +05:30
Khushboo Vashi
f77aa3284f
Added LDAP authentication support. Fixes #2186
2020-04-06 15:57:05 +05:30