Make SASL max message length configurable
authorDaniel Gustafsson <dgustafsson@postgresql.org>
Wed, 23 Oct 2024 14:10:27 +0000 (16:10 +0200)
committerDaniel Gustafsson <dgustafsson@postgresql.org>
Wed, 23 Oct 2024 14:10:27 +0000 (16:10 +0200)
commit6d16f9debae0a09a7db91d7f204bda043d04792c
treecd956bb5b9cd0c447da688e7f35fa09fb366feac
parent17b4aa77c3a161a9d0e7b08bd9931fe9fd051540
Make SASL max message length configurable

The proposed OAUTHBEARER SASL mechanism will need to allow larger
messages in the exchange, since tokens are sent directly by the
client.  Move this limit into the pg_be_sasl_mech struct so that
it can be changed per-mechanism.

Author: Jacob Champion <jacob.champion@enterprisedb.com>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://postgr.es/m/CAOYmi+nqX_5=Se0W0Ynrr55Fha3CMzwv_R9P3rkpHb=1kG7ZTQ@mail.gmail.com
src/backend/libpq/auth-sasl.c
src/backend/libpq/auth-scram.c
src/include/libpq/sasl.h