Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assign Admin role from OAuth2 #8115

Open
jplitza opened this issue Nov 11, 2024 · 0 comments
Open

Assign Admin role from OAuth2 #8115

jplitza opened this issue Nov 11, 2024 · 0 comments
Labels

Comments

@jplitza
Copy link

jplitza commented Nov 11, 2024

Describe the solution you'd like

A new setting akin to OAUTH2_ADDITIONAL_CLAIMS should enable accounts from OAuth2 sources to become admin users automatically (or have that role revoked).

Describe alternatives you've considered

Manually managing admin roles in pgAdmin in addition to the OAuth2 Identity Provider.

Additional context

This proposal might seem moot, since the admin role only provides the user management option, which might not seem relevant in OAuth2-only environments. However, when there are shared servers, one might want to delete the user that originally created them to transfer them to another user, even in a OAuth2-only environment (since pgAdmin cannot know when a user is no longer valid if they don't try to sign in).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

1 participant