oauth2 patch

From: Florian Sabonchi <sabonchi(at)posteo(dot)de>
To: pgadmin-hackers(at)postgresql(dot)org
Subject: oauth2 patch
Date: 2021-05-07 15:41:18
Message-ID: c5c98440-ec50-6e8c-1461-6b2da047fa13@posteo.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Hello in this patch I have implemented OAuth2. Unfortunately I wasn't
sure how the test should look like, because I couldn't find anything in
the developer documentation, so I decided not to write one for now.

The configuration has to look like this here is an example for github:

OAUTH2_NAME = 'github'
OAUTH2_CLIENT_ID = 'secret'
OAUTH2_CLIENT_SECRET = 'secret'
OAUTH2_TOKEN_URL = 'https://github.com/login/oauth/access_token'
OAUTH2_AUTHORIZATION_URL = 'https://github.com/login/oauth/authorize'
OAUTH2_API_BASE_URL = 'https://api.github.com/'
OAUTH2_USERINFO_ENDPOINT = 'https://api.github.com/user'
OAUTH_ENDPOINT_NAME = 'user'

Attachment Content-Type Size
0001-Draft-for-oauth2-added.patch text/x-patch 22.5 KB

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Akshay Joshi 2021-05-10 05:29:42 Re: oauth2 patch
Previous Message Akshay Joshi 2021-05-07 11:49:02 pgAdmin 4 commit: Added support to set auto width of columns by content