How to Configure OAuth 2.0 with Azure AD in pgAdmin4

  1. Register pgAdmin app in Azure AD, Please check details here. https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-register-app
  2. The redirect url to configure for the app in Azure AD is: https://<pgAdmin Server URL>/oauth2/authorize
  3. Add a client secret. In the Azure portal, in App registrations, select your application, select Certificates & secrets > Client secrets > New client secret.
  4. Configure Oauth2 as authentication source in config_local.py/config_system.py (https://www.pgadmin.org/docs/pgadmin4/6.8/config_py.html) on system where pgAdmin is installed in server mode.

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

SSO and Zero-Trust made simple using the Datawiza Access Broker (DAB)

Azure Databricks — How To Use Widgets

Azure Databricks Python Function

AWS Lambda v Amazon ECS — two paths to one goal, which is best?

Building a Multiarch Microservice on .NET 5 and C# 9

RDS Data Synchronization, Backup and Restoration

How to Choose the Right Coding Bootcamp

MLOps Project-2

Watch out! A ‘Big’ Cloud is Approaching!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Asmita Thapliyal

Asmita Thapliyal

More from Medium

VARC System Architecture

Tips from a Seasoned Pro

CS 373 Spring 2022: Saran Chockan Blog # 14

Portfolio Management Tools