Hello,
I’m trying to configure OAuth2 SSO with PgAdmin4 (Docker, version 9.10).
Despite a valid oidc_providers.json file and correct environment variables, I always get the error:
Please set the configuration parameters properly.
My setup:
Docker image: dpage/pgadmin4:9.10
Mounted file: oidc_providers.json
Environment variables:
PGADMIN_CONFIG_OAUTH2_PROVIDERS_FILE: '"/etc/pgadmin/oidc_providers.json"'
PGADMIN_CONFIG_PATH_PREFIX: '"/pgadmin4"'
[
{
"name": "Microsoft Entra ID",
"icon": "fa-windows",
"token_url": "https://login.microsoftonline.com/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/oauth2/v2.0/token",
"authorize_url": "https://login.microsoftonline.com/xxxxxxxxxxxxxxxxxxxxxxxxxx/oauth2/v2.0/authorize",
"client_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"client_secret": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"scope": "openid email profile",
"userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo",
"userinfo_params": {},
"user_id": "email",
"user_email": "email",
"user_name": "name"
}
]
What I tried:
Removing/adding double quotes in env variables
Removing PATH_PREFIX
Using a minimal JSON
Deleting all PgAdmin volumes
Verified file is present and readable in the container
Always the same error.
Is this a bug in PgAdmin4 or am I missing something in the configuration?
Thanks for your help!