pgAdmin 4 commit: Added support for OAuth 2 authentication. Fixes #5940

From: Akshay Joshi <akshay(dot)joshi(at)enterprisedb(dot)com>
To: pgadmin-hackers(at)lists(dot)postgresql(dot)org
Subject: pgAdmin 4 commit: Added support for OAuth 2 authentication. Fixes #5940
Date: 2021-07-06 07:54:30
Message-ID: E1m0fuY-0005BV-9o@gothos.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Added support for OAuth 2 authentication. Fixes #5940

Initial patch sent by: Florian Sabonchi

Branch
------
master

Details
-------
https://git.postgresql.org/gitweb?p=pgadmin4.git;a=commitdiff;h=48ca83f31dee76c05edb6b64a595964968ec7eb2
Author: Khushboo Vashi <khushboo(dot)vashi(at)enterprisedb(dot)com>

Modified Files
--------------
DEPENDENCIES | 1 +
docs/en_US/getting_started.rst | 1 +
docs/en_US/images/oauth2_login.png | Bin 0 -> 112129 bytes
docs/en_US/kerberos.rst | 11 ++
docs/en_US/oauth2.rst | 61 +++++++
docs/en_US/release_notes_5_5.rst | 1 +
requirements.txt | 2 +
web/config.py | 48 +++++-
web/pgadmin/__init__.py | 21 ++-
web/pgadmin/authenticate/__init__.py | 181 ++++++---------------
web/pgadmin/authenticate/internal.py | 6 +-
web/pgadmin/authenticate/kerberos.py | 126 +++++++++++++-
web/pgadmin/authenticate/oauth2.py | 172 ++++++++++++++++++++
web/pgadmin/authenticate/static/js/kerberos.js | 13 +-
web/pgadmin/browser/__init__.py | 27 ++-
.../servers/tests/test_role_dependencies_sql.py | 10 +-
.../browser/templates/browser/js/constants.js | 3 +-
.../browser/tests/test_kerberos_with_mocking.py | 22 +--
web/pgadmin/browser/tests/test_ldap_login.py | 6 +-
.../browser/tests/test_ldap_with_mocking.py | 16 +-
web/pgadmin/browser/tests/test_login.py | 3 +-
web/pgadmin/browser/tests/test_master_password.py | 2 +
.../browser/tests/test_oauth2_with_mocking.py | 147 +++++++++++++++++
web/pgadmin/misc/bgprocess/processes.py | 2 +-
web/pgadmin/static/scss/_pgadmin.style.scss | 3 +
web/pgadmin/templates/security/login_user.html | 11 +-
web/pgadmin/tools/user_management/__init__.py | 2 +-
.../user_management/static/js/user_management.js | 13 +-
web/pgadmin/utils/constants.py | 4 +-
web/pgadmin/utils/driver/psycopg2/connection.py | 6 +-
web/pgadmin/utils/master_password.py | 10 +-
.../python_test_utils/csrf_test_client.py | 27 +--
web/regression/python_test_utils/test_utils.py | 6 +-
web/regression/runtests.py | 3 +-
web/yarn.lock | 4 +-
35 files changed, 747 insertions(+), 224 deletions(-)

Browse pgadmin-hackers by date

  From Date Subject
Next Message Akshay Joshi 2021-07-06 07:55:05 Re: [pgAdmin][Patch] - RM #5940 - Add support for Oauth 2 authentication
Previous Message Khushboo Vashi 2021-07-06 06:31:01 Re: [pgAdmin][Patch] - RM #5940 - Add support for Oauth 2 authentication