Re: oauth support?

From: Álvaro Hernández <aht(at)ongres(dot)com>
To: Devrim Gündüz <devrim(at)gunduz(dot)org>, Troels Arvin <troels(at)arvin(dot)dk>, pgsql-pkg-debian(at)lists(dot)postgresql(dot)org
Subject: Re: oauth support?
Date: 2025-12-10 12:45:15
Message-ID: 73b45b9b-3c07-4143-b21c-68ba66158633@ongres.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-pkg-debian

On 10/12/25 8:45, Devrim Gündüz wrote:
> Hi,
>
> On Wed, 2025-12-10 at 08:40 +0100, Troels Arvin wrote:
>> I'm reading about the new OAuth support in PostgreSQL 18. It says
>> PostgreSQL needs to be built using "--with-libcurl".
>>
>> In the PostgreSQL I get when using apt.postgresql.org, I don't see
>> anything about curl in output from "ldd
>> /usr/lib/postgresql/18/bin/postgres", nor from "ldd
>> /usr/lib/postgresql/18/bin/psql".
>>
>> Should I expect to be able to use the new OAuth feature in PostgreSQL
>> 18 with the packages from apt.postgresql.org? If so: Do I need to
>> install a particular, extra package for it to be available?
> OAuth support is in the libpq-oauth (sub)package. RPMs also split that
> into -libs-oauth subpackage for security concerns over curl.
>
> Regards,

    Hi.

    From what I can see, the package libpq-oauth contains the file:

/usr/lib/x86_64-linux-gnu/libpq-oauth-18.so

which is dynamically loaded by Postgres, see
https://github.com/postgres/postgres/blob/master/src/interfaces/libpq/fe-auth-oauth.c#L818

    WRT libcurl, it's not linked but shows in pg_config:

$ pg_config |grep -o "with-libcurl"
with-libcurl

    Regards,

    Álvaro

--

Alvaro Hernandez

-----------
OnGres

In response to

Browse pgsql-pkg-debian by date

  From Date Subject
Next Message Christoph Berg 2025-12-10 13:48:29 Re: separate security tag?
Previous Message Wim Bertels 2025-12-10 12:23:07 separate security tag?