pg.ddx.io  GitHub: pgjdbc/pgjdbc (issues + PRs as email threads)  
help / color / mirror / Atom feed
From: vlsi (@vlsi) <noreply+vlsi@github.com>
To: pgjdbc/pgjdbc <noreply+pgjdbc-pgjdbc@github.com>
Subject: Re: [pgjdbc/pgjdbc] PR #4251: OAuth implementation
Date: Wed, 23 Sep 2026 06:43:34 +0000
Message-ID: <gh-pgjdbc-pgjdbc-4251-rc4079734683@github.com> (raw)
In-Reply-To: <gh-pgjdbc-pgjdbc-4251@github.com>
References: <gh-pgjdbc-pgjdbc-4251@github.com>

(on docs/content/documentation/use.md:563)

Please add what a user needs before relying on this property:

- The token is a fixed value. A pool that opens a connection after it expires gets `FATAL: OAuth bearer authentication failed for user "..."` on every new connection and never recovers (reproduced with HikariCP), while open sessions stay up. Use `oauthTokenProviderClassName` for pools.
- The token must match the RFC 6750 `b64token` syntax, or the connection fails with `Invalid OAuth bearer token format...`. In a JDBC URL, write `+` as `%2B`.
- The value is omitted from `getUrl()` and masked in logged URLs, but `DatabaseMetaData.getURL()` returns it, and HikariCP logs `dataSourceProperties` unmasked at DEBUG.
- Cloud IAM and Entra tokens (RDS, Aurora, Azure, Cloud SQL) are passwords, not OAUTHBEARER tokens. Setting one here fails with `The server requested password-based authentication, but no password was provided.` Point users to `password` or `authenticationPluginClassName` instead.
- `Since: 42.7.14` on this and every other new entry, and on the `oauth` value of `requireAuth`.

view thread (168+ messages)  latest in thread

Message-ID: <gh-pgjdbc-pgjdbc-4251-rc4079734683@github.com>
Permalink:  ../gh-pgjdbc-pgjdbc-4251-rc4079734683@github.com/

 · 


This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox