From 7c70a33a07856df88071ac7991ced1e99fad0dea Mon Sep 17 00:00:00 2001 From: "Chao Li (Evan)" Date: Thu, 4 Jun 2026 19:23:59 +0800 Subject: [PATCH v1] doc: Clarify OAuth validator error_detail handling ValidatorModuleResult.error_detail is still consulted when validate_cb returns false to signal an internal error. Do not describe all result parameters as ignored in that case. Author: Chao Li --- doc/src/sgml/oauth-validators.sgml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/src/sgml/oauth-validators.sgml b/doc/src/sgml/oauth-validators.sgml index 8aad470a464..7015664f26c 100644 --- a/doc/src/sgml/oauth-validators.sgml +++ b/doc/src/sgml/oauth-validators.sgml @@ -399,9 +399,10 @@ typedef struct ValidatorModuleResult 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. Except for + result->error_detail, all result parameters are + ignored. 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 -- 2.50.1 (Apple Git-155)