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:33 +0000
Message-ID: <gh-pgjdbc-pgjdbc-4251-rc4079734549@github.com> (raw)
In-Reply-To: <gh-pgjdbc-pgjdbc-4251@github.com>
References: <gh-pgjdbc-pgjdbc-4251@github.com>
(on pgjdbc/src/main/java/org/postgresql/core/v3/ConnectionFactoryImpl.java:468)
The sibling messages name the provider class, and this one doesn't: `GT.tr("OAuth token provider {0} returned a null or empty token", providerClassName)`.
Also: a provider that returns the same array twice gets it back zeroed on the second connection, and then fails with `Invalid OAuth bearer token format`, which gives no hint of the cause. That follows the documented contract, but the Javadoc could say what the failure looks like.