Re: pgsql: doc: Clarify OAuth validator authn_id logging

Поиск
Список
Период
Сортировка
Искать

Re: pgsql: doc: Clarify OAuth validator authn_id logging

От:
Erik Rijkers <er@xs4all.nl>
Дата:
Op 6/6/26 om 00:22 schreef Daniel Gustafsson:
> doc: Clarify OAuth validator authn_id logging
> 
> Author: Chao Li 
> Reviewed-by: Jacob Champion 
> Reported-by: Daniel Gustafsson 
> Discussion: https://postgr.es/m/0281836A-F5FF-41A5-9EE1-656C1FAAC6B2@gmail.com
> 
> Branch
> ------
> master
> 
> Details
> -------
> https://git.postgresql.org/pg/commitdiff/4cb2e2fe0aa8251bef8c2e2351cd5a062c105c0a
> 
> Modified Files
> --------------
> doc/src/sgml/oauth-validators.sgml | 13 +++++++++----
> 1 file changed, 9 insertions(+), 4 deletions(-)

Hi,

In doc/src/sgml/oauth-validators.sgml, and if I understand this text 
correctly (always a big if), then:

"If the validator returns true and set result->authn_id then"

should be:
"If the validator returns true and sets result->authn_id then"
   (i.e., set -> sets)

(added Michael in CC as he seems to collect these minimal patches, to be 
committed later as a group)

Thanks,

Erik



Re: pgsql: doc: Clarify OAuth validator authn_id logging

От:
Michael Paquier <michael@paquier.xyz>
Дата:
Вложения:
On Sat, Jun 06, 2026 at 02:36:24PM +0200, Erik Rijkers wrote:
> In doc/src/sgml/oauth-validators.sgml, and if I understand this text
> correctly (always a big if), then:
> 
> "If the validator returns true and set result->authn_id then"
> 
> should be:
> "If the validator returns true and sets result->authn_id then"
>   (i.e., set -> sets)
> 
> (added Michael in CC as he seems to collect these minimal patches, to be
> committed later as a group)

In auth-oauth.c, there is a validate() path setting the authn_id, so
your suggestion sounds right.  I've grabbed that for later.  My branch
can always be overwritten by somebody else's commit preference, of
course, so if you feel that this should be fixed separately, feel free
to go ahead.
--
Michael
FAQ