Skip to content

Missing jwks uri error when not providing OAUTH2_SERVER_METADATA_URL variable #9988

@jeabapLANG

Description

@jeabapLANG

Please note that security bugs or issues should be reported to security@pgadmin.org.

Describe the bug

While the documentation states that the variable OAUTH2_SERVER_METADATA_URL can be omitted when not using discovery, it still triggers an error at the connection of a client to PGADMIN :
{"success":0,"errormsg":"Missing \"jwks_uri\" in metadata","info":"","result":null,"data":null}

To Reproduce

Steps to reproduce the behavior:

  1. Setup a docker
  2. Enable OAUTH2 with all the necessary variables omitting OAUTH2_SERVER_METADATA_URL as it's marked as a non-necessary variable if not using discovery

Expected behavior

If all the variables for OAUTH2 are correctly configured, PGAdmin should not complain about a missing jwks_uri.

Error message

{"success":0,"errormsg":"Missing \"jwks_uri\" in metadata","info":"","result":null,"data":null}

If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. Windows 10, OSX monterey]
  • pgAdmin version: [e.g. 6.15]
  • Mode: [e.g Desktop or Server]
  • Browser (if running in server mode): [e.g. chrome, safari]
  • Package type: [e.g. RPM, DEB, Python, Container, etc.]

Additional context

Add any other context about the problem here.

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