pgadmin-org / pgadmin4

pgAdmin is the most popular and feature rich Open Source administration and development platform for PostgreSQL, the most advanced Open Source database in the world.
https://www.pgadmin.org
Other
2.3k stars 612 forks source link

oauth2 github - add "OAUTH2_ALLOWED_ORGANIZATIONS" to config (RM #6640) #4467

Open dpage opened 2 years ago

dpage commented 2 years ago

Issue migrated from Redmine: https://redmine.postgresql.org/issues/6640 Originally created by Max Vez at 2021-07-23 13:28:03 UTC.

Hello,

New OAUTH2 support in pagmin4 is awesome.

However, it would be great to be able to restrict which users can login using github oauth2 based on the organization name they belong to (at least in the case of Github).

Ex: Grafana github oauth2 support documentation: https://grafana.com/docs/grafana/latest/auth/github/

They support two extra parameters:

Thanks!

dpage commented 2 years ago

Comment migrated from Redmine: https://redmine.postgresql.org/issues/6640#note-1 Originally created by Akshay Joshi at 2021-07-30 11:22:05 UTC.

Redmine ticket header update:

Name Old Value New Value
Sprint changed Ready
dpage commented 2 years ago

Comment migrated from Redmine: https://redmine.postgresql.org/issues/6640#note-2 Originally created by Florian Sabonchi at 2021-10-08 20:11:09 UTC.

Max Vez wrote:

Hello,

New OAUTH2 support in pagmin4 is awesome.

However, it would be great to be able to restrict which users can login using github oauth2 based on the organization name they belong to (at least in the case of Github).

Ex: Grafana github oauth2 support documentation: https://grafana.com/docs/grafana/latest/auth/github/

They support two extra parameters:

  • allowed_organizations =
  • team_ids =

Thanks!

Hi I will have a look

dpage commented 2 years ago

Comment migrated from Redmine: https://redmine.postgresql.org/issues/6640#note-3 Originally created by Alan Hood at 2022-02-18 10:31:51 UTC.

Any update on this?