Move PG_MAX_AUTH_TOKEN_LENGTH to libpq/auth.h
Daniel Gustafsson <dgustafsson@postgresql.org>
Move PG_MAX_AUTH_TOKEN_LENGTH to libpq/auth.h Future SASL mechanism, like OAUTHBEARER, will use this as a limit on token messages coming from the client, so promote it to the header file to make it available. This patch is extracted from a larger body of work aimed at adding support for OAUTHBEARER in libpq. Author: Jacob Champion <jacob.champion@enterprisedb.com> Reviewed-by: Daniel Gustafsson <daniel@yesql.se> Reviewed-by: Peter Eisentraut <peter@eisentraut.org> Discussion: https://postgr.es/m/CAOYmi+kJqzo6XsR9TEhvVfeVNQ-TyFM5LATypm9yoQVYk=4Wrw@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/libpq/auth.c | modified | +0 −16 |
| src/include/libpq/auth.h | modified | +16 −0 |
Discussion
- [PoC] Federated Authn/z with OAUTHBEARER 429 messages · 2021-06-08 → 2025-08-08