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-rc4079734551@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:1222)
Removing this call passes every DB-free test, yet it breaks `requireAuth=oauth` for every successful login (AuthenticationOk then looks like trust). The live server run shows the current code is right. Please add a loopback test of a successful OAUTHBEARER exchange with `requireAuth=oauth`: SASL(OAUTHBEARER), then AuthenticationOk, then ReadyForQuery, and the connection opens.