Skip to content

oauth regression: ssl verification error with self-signed certificate #10053

@cheggerdev

Description

@cheggerdev

I use oauth login to pgAdmin in docker with self-signed certificate and Authentik as IdP.
SSL verification is disabled because of the self-signed certificate.

Docker compose environment variable:
PGADMIN_CONFIG_OAUTH2_SSL_CERT_VERIFICATION=False

OAuth login works fine up to version 9.10.
With Version 9.11 to 9.15 I get an SSL verification error.

To Reproduce

Steps to reproduce the behavior:

  1. Install pgAdmin 9.10, configure oauth with self-signed certificate and login
  2. Login works
  3. Update to pgAdmin 9.11 or newer
  4. Login fails

Expected behavior

OAuth login should work.

Error message

{"success":0,"errormsg":"HTTPSConnectionPool(host='authentik.example.com', port=443): Max retries exceeded with url: /application/o/pgadmin/.well-known/openid-configuration (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Basic Constraints of CA cert not marked critical (_ssl.c:1081)')))","info":"","result":null,"data":null}

Desktop (please complete the following information):

  • OS: Synology NAS
  • pgAdmin version: 9.10 working, 9.11+ broken
  • Mode: Server
  • Browser (if running in server mode): Firefox 151.0.3
  • Package type: docker compose container

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions