Describe the bug
We are currently unable to authenticate using OAuth with Google. The issue arises from the redirect_url being generated with http instead of https.
Our application is running in a Kubernetes environment, and we have configured the necessary settings to handle forwarded headers. Specifically, the service is configured with the annotation nginx.ingress.kubernetes.io/use-forwarded-headers: "true", and our Ingress also has the annotation use-forwarded-headers: "true". Despite these configurations, the redirect_url continues to be generated with http, which is causing authentication failures.
We would appreciate any guidance on how to resolve this issue.
A clear and concise description of what the bug is.
Running Pgadmin 8.12
This is my config_local.py
AUTHENTICATION_SOURCES = ['internal', 'oauth2']
OAUTH2_AUTO_CREATE_USER = True
OAUTH2_CONFIG = [
{
'OAUTH2_NAME': 'Google',
'OAUTH2_DISPLAY_NAME': 'Google',
'OAUTH2_CLIENT_ID': '<ID>',
'OAUTH2_CLIENT_SECRET': '<SECRET>',
'OAUTH2_TOKEN_URL': 'https://oauth2.googleapis.com/token',
'OAUTH2_AUTHORIZATION_URL': 'https://accounts.google.com/o/oauth2/auth',
'OAUTH2_SERVER_METADATA_URL': 'https://accounts.google.com/.well-known/openid-configuration',
'OAUTH2_API_BASE_URL': 'https://openidconnect.googleapis.com/v3/',
'OAUTH2_USERINFO_ENDPOINT': 'userinfo',
'OAUTH2_SCOPE': 'openid email',
'OAUTH2_USERNAME_CLAIM': None,
'OAUTH2_ICON': 'fa-google',
'OAUTH2_BUTTON_COLOR': '#3253a8',
'OAUTH2_ADDITIONAL_CLAIMS': None,
'OAUTH2_SSL_CERT_VERIFICATION': True,
'OAUTH2_LOGOUT_URL': None
}
]
Describe the bug
We are currently unable to authenticate using OAuth with Google. The issue arises from the redirect_url being generated with http instead of https.
Our application is running in a Kubernetes environment, and we have configured the necessary settings to handle forwarded headers. Specifically, the service is configured with the annotation nginx.ingress.kubernetes.io/use-forwarded-headers: "true", and our Ingress also has the annotation use-forwarded-headers: "true". Despite these configurations, the redirect_url continues to be generated with http, which is causing authentication failures.
We would appreciate any guidance on how to resolve this issue.
A clear and concise description of what the bug is.
Running Pgadmin 8.12
This is my config_local.py