diff --git a/doc/src/sgml/oauth-validators.sgml b/doc/src/sgml/oauth-validators.sgml
index 8aad470a464..d69b6cf98ad 100644
--- a/doc/src/sgml/oauth-validators.sgml
+++ b/doc/src/sgml/oauth-validators.sgml
@@ -395,13 +395,18 @@ typedef struct ValidatorModuleResult
token) shall be palloc'd and returned in the result->authn_id
field. Alternatively, result->authn_id may be set to
NULL if the token is valid but the associated user identity cannot be
- determined.
+ determined. If the validator returns true and
+ set result->authn_id then the identity appears
+ in the server log when includes
+ authentication. This happens before authorization and
+ will log authentication even if the connection is later rejected due to
+ authorization.
A validator may return false to signal an internal error,
- in which case any result parameters are ignored and the connection fails.
- Otherwise the validator should return true to indicate
- that it has processed the token and made an authorization decision.
+ in which case the connection fails. Otherwise the validator should return
+ true to indicate that it has processed the token and made
+ an authorization decision.
In either failure case (validation error or internal error) the module may