Created
October 17, 2024 12:18
-
-
Save robuye/d4daecb98632210c3ed54c909301b2a3 to your computer and use it in GitHub Desktop.
pgadmin oauth for github
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Essential configuration for authentication with Github | |
MASTER_PASSWORD = True | |
MASTER_PASSWORD_HOOK = "/bin/echo $PGADMIN_MASTER_PASSWORD" | |
AUTHENTICATION_SOURCES = ["oauth2"] | |
ENABLE_SERVER_PASS_EXEC_CMD = True | |
OAUTH2_AUTO_CREATE_USER = True | |
OAUTH2_CONFIG = [ | |
{ | |
"OAUTH2_NAME": "github", | |
"OAUTH2_DISPLAY_NAME": "GitHub", | |
"OAUTH2_CLIENT_ID": "xxx", | |
"OAUTH2_CLIENT_SECRET": "xxx", | |
"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": "user", | |
"OAUTH2_ICON": "fa-github", | |
"OAUTH2_BUTTON_COLOR": "#3253a8", | |
"OAUTH2_SCOPE": "user", | |
"OAUTH2_USERNAME_CLAIM": "login" | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment