libpq-oauth: Use the PGoauthBearerRequestV2 API
Jacob Champion <jchampion@postgresql.org>
Author:
Jacob Champion <jchampion@postgresql.org>
Date: 2026-03-13T16:37:59Z
Releases:
19 (unreleased)
libpq-oauth: Use the PGoauthBearerRequestV2 API Switch the private libpq-oauth ABI to a public one, based on the new PGoauthBearerRequestV2 API. A huge amount of glue code can be removed as part of this, and several code paths can be deduplicated. Additionally, the shared library no longer needs to change its name for every major release; it's now just "libpq-oauth.so". Reviewed-by: Chao Li <li.evan.chao@gmail.com> Reviewed-by: Zsolt Parragi <zsolt.parragi@percona.com> Discussion: https://postgr.es/m/CAOYmi%2BmrGg%2Bn_X2MOLgeWcj3v_M00gR8uz_D7mM8z%3DdX1JYVbg%40mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/interfaces/libpq/fe-auth-oauth.c | modified | +111 −118 |
| src/interfaces/libpq/fe-auth-oauth.h | modified | +1 −6 |
| src/interfaces/libpq-oauth/exports.txt | modified | +1 −2 |
| src/interfaces/libpq-oauth/Makefile | modified | +3 −6 |
| src/interfaces/libpq-oauth/meson.build | modified | +1 −3 |
| src/interfaces/libpq-oauth/oauth-curl.c | modified | +201 −135 |
| src/interfaces/libpq-oauth/oauth-curl.h | modified | +3 −3 |
| src/interfaces/libpq-oauth/oauth-utils.c | modified | +5 −72 |
| src/interfaces/libpq-oauth/oauth-utils.h | modified | +1 −42 |
| src/interfaces/libpq-oauth/README | modified | +26 −41 |
| src/tools/pgindent/typedefs.list | modified | +0 −9 |
Discussion
- [oauth] Stabilize the libpq-oauth ABI (and allow alternative implementations?) 28 messages · 2025-12-09 → 2026-03-31