From: artemgavrilov (@artemgavrilov) <noreply+artemgavrilov@github.com>
To: pgjdbc/pgjdbc <noreply+pgjdbc-pgjdbc@github.com>
Subject: Re: [pgjdbc/pgjdbc] PR #4251: OAuth implementation
Date: Sun, 05 Jul 2026 23:11:10 +0000
Message-ID: <gh-pgjdbc-pgjdbc-4251-c4887919960@github.com> (raw)
In-Reply-To: <gh-pgjdbc-pgjdbc-4251@github.com>
References: <gh-pgjdbc-pgjdbc-4251@github.com>
PR Update:
1. Added context parameter to `getToken` method interface. Now it holds information needed to request token, but I skipped database name, user, host, etc. Please let me know if you want this, or any other data to be in the context.
2. Changed token variable type from String to char[] and added this variable zeroing right after usage.
3. Aligned `requireAuth` parameter name with libpq: `oauth_bearer` -> `oauth`
4. Integrated OAuth tests into test matrix
5. Added Oauth test profiles: `smoke` and `all`. From `all` test run I excluded tests that explicitly incompatible with OAuth (like password authentication tests) and suites that have their own infrastructure setup (GSS).
6. Fixed error messages for incompatible with `requireAuth` scenarios.
7. Fixed typos
8. `pg_oidc_validator` extension now moves to official PGDG package repos. RPMs already available, but I'm waithing for DEBs. For time being added todo commens to remove architecutre pin in docker compose and switch repos.