-
Notifications
You must be signed in to change notification settings - Fork 765
Closed
Description
Describe the bug
Upgrading the docker
version from 8.11 > 8.12 causes the following issue when attempting to access pgAdmin.
{"success":0,"errormsg":"Object of type Undefined is not JSON serializable","info":"","result":null,"data":null}
I'm using authentik
to login via oauth2
. Downgrading to 8.11 restores functionality. If I'm already authenticated into pgAdmin and upgrade to 8.12, it will still login in until my session expires, then it will fallback to this error. I tried force setting OAUTH2_USERNAME_CLAIM
to email
to no avail.
To Reproduce
Steps to reproduce the behavior:
- Upgrade from 8.11 to 8.12 with
oauth2
login enabled. - Attempt to access
/login
- See the error
Expected behavior
Login to the webapp without issue.
Error message
{"success":0,"errormsg":"Object of type Undefined is not JSON serializable","info":"","result":null,"data":null}
Additional context
I have the feeling #7839 or #7945 might have something to do with the issue.
Configuration in use:
WTF_CSRF_CHECK_DEFAULT = False
SERVER_MODE = True
MASTER_PASSWORD_REQUIRED = True
AUTHENTICATION_SOURCES = ['oauth2', 'internal']
OAUTH2_AUTO_CREATE_USER = True
OAUTH2_CONFIG = [{
'OAUTH2_NAME': 'oidc',
'OAUTH2_DISPLAY_NAME': 'Home ID',
'OAUTH2_CLIENT_ID': 'pgadmin',
'OAUTH2_CLIENT_SECRET': 'some-secret',
'OAUTH2_TOKEN_URL': 'https://auth.domain.com/application/o/token/',
'OAUTH2_AUTHORIZATION_URL': 'https://auth.domain.com/application/o/authorize/',
'OAUTH2_API_BASE_URL': 'https://auth.domain.com/application/o/pgadmin/',
'OAUTH2_USERINFO_ENDPOINT': 'https://auth.domain.com/application/o/userinfo/',
'OAUTH2_SCOPE': 'openid email profile',
'OAUTH2_ICON' : 'fa-houzz',
'OAUTH2_SERVER_METADATA_URL': 'https://auth.domain.com/application/o/pgadmin/.well-known/openid-configuration',
'OAUTH2_USERNAME_CLAIM': 'email',
'OAUTH2_ADDITIONAL_CLAIMS': {
'groups': ["pgAdmin Admins"],
}
}]
mrskizzex, RobinTopper, Farkie, dasunsrule32, subhidh-agarwal and 1 more