pgsql: libpq-oauth: Use the PGoauthBearerRequestV2 API

From: Jacob Champion <jchampion(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: libpq-oauth: Use the PGoauthBearerRequestV2 API
Date: 2026-03-13 16:38:51
Message-ID: E1w15XH-003rMr-1V@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(dot)evan(dot)chao(at)gmail(dot)com>
Reviewed-by: Zsolt Parragi <zsolt(dot)parragi(at)percona(dot)com>
Discussion: https://postgr.es/m/CAOYmi%2BmrGg%2Bn_X2MOLgeWcj3v_M00gR8uz_D7mM8z%3DdX1JYVbg%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/6225403f2783dae16be57120618522d255bd6cc8

Modified Files
--------------
src/interfaces/libpq-oauth/Makefile | 9 +-
src/interfaces/libpq-oauth/README | 67 +++---
src/interfaces/libpq-oauth/exports.txt | 3 +-
src/interfaces/libpq-oauth/meson.build | 4 +-
src/interfaces/libpq-oauth/oauth-curl.c | 336 ++++++++++++++++++-------------
src/interfaces/libpq-oauth/oauth-curl.h | 6 +-
src/interfaces/libpq-oauth/oauth-utils.c | 77 +------
src/interfaces/libpq-oauth/oauth-utils.h | 43 +---
src/interfaces/libpq/fe-auth-oauth.c | 229 ++++++++++-----------
src/interfaces/libpq/fe-auth-oauth.h | 7 +-
src/tools/pgindent/typedefs.list | 9 -
11 files changed, 353 insertions(+), 437 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Nathan Bossart 2026-03-13 16:45:56 pgsql: Add commit b6eb8dde6b to .git-blame-ignore-revs.
Previous Message Nathan Bossart 2026-03-13 16:32:44 pgsql: Initialize variable to placate compiler.