Обсуждение: oauth2 patch

Поиск
Список
Период
Сортировка

oauth2 patch

От
Florian Sabonchi
Дата:
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'



Вложения

Re: oauth2 patch

От
Akshay Joshi
Дата:
Hi Khushboo

Can you please review the patch?

On Sun, May 9, 2021 at 12:53 AM Florian Sabonchi <sabonchi@posteo.de> wrote:
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'




--
Thanks & Regards
Akshay Joshi
pgAdmin Hacker | Principal Software Architect
EDB Postgres
Mobile: +91 976-788-8246

Re: oauth2 patch

От
Khushboo Vashi
Дата:


On Mon, May 10, 2021 at 10:59 AM Akshay Joshi <akshay.joshi@enterprisedb.com> wrote:
Hi Khushboo

Can you please review the patch?
On it. 

On Sun, May 9, 2021 at 12:53 AM Florian Sabonchi <sabonchi@posteo.de> wrote:
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'




--
Thanks & Regards
Akshay Joshi
pgAdmin Hacker | Principal Software Architect
EDB Postgres
Mobile: +91 976-788-8246

Re: oauth2 patch

От
Khushboo Vashi
Дата:
Hi Florian,

I have reviewed your patch, some modifications are required as below. I have started working on top of your patch to accommodate the required changes.

- Proper handling of Master Password in Server Mode as it was introduced only in Desktop mode.
- Encryption/Decryption of the server password if Master Password is disabled, currently if I disable the master password, I could not connect the server with your patch.
- Proper documentation, comments.
- Minor UI modifications, like introducing a configurable icon with the Oauth login button etc.

You can track the progress, ref https://redmine.postgresql.org/issues/5940, I have attached your initial patch in the RM itself.

Thanks,
Khushboo








On Mon, May 10, 2021 at 4:02 PM Khushboo Vashi <khushboo.vashi@enterprisedb.com> wrote:


On Mon, May 10, 2021 at 10:59 AM Akshay Joshi <akshay.joshi@enterprisedb.com> wrote:
Hi Khushboo

Can you please review the patch?
On it. 

On Sun, May 9, 2021 at 12:53 AM Florian Sabonchi <sabonchi@posteo.de> wrote:
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'




--
Thanks & Regards
Akshay Joshi
pgAdmin Hacker | Principal Software Architect
EDB Postgres
Mobile: +91 976-788-8246