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-rc4079734694@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:593)
RFC 7628 §3 says only that TLS must be used. It gives no reason, and says nothing about impostor servers or certificate verification. That part is RFC 6750 §5.3. Suggested: "RFC 7628 §3 requires TLS for OAUTHBEARER, and RFC 6750 §5.3 requires the client to validate the server certificate, so an unverified server could collect the token." One more sentence would save bug reports: libpq applies no such check, so a connection string copied from `psql` with `sslmode=prefer` fails here.