Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wV7HC-001hYQ-2z for pgsql-hackers@arkaria.postgresql.org; Thu, 04 Jun 2026 12:34:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wV7HB-006UbG-1H for pgsql-hackers@arkaria.postgresql.org; Thu, 04 Jun 2026 12:34:21 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wV7HB-006Ub8-0L for pgsql-hackers@lists.postgresql.org; Thu, 04 Jun 2026 12:34:21 +0000 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wV7H8-00000001EgC-3CxS for pgsql-hackers@lists.postgresql.org; Thu, 04 Jun 2026 12:34:20 +0000 Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-2bf114b0cf9so5194425ad.2 for ; Thu, 04 Jun 2026 05:34:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1780576456; x=1781181256; darn=lists.postgresql.org; h=to:cc:date:message-id:subject:mime-version:from:from:to:cc:subject :date:message-id:reply-to; bh=n4DW0XSwiOyxj1EKUTyVh6q2KRBTWGSiO3JZYbckvps=; b=dEg26E0x3iUkn1Np75MdlchLHt8EPvZZwzeNOqOvI8kpzK+5C8vyHeBrY1goGVyTHC uknPeYWf6SO+ed1qm59Ostvzqln2dOkNa+DRKiV7VA1PAopFucKBo2dM5S0Fkox10gO9 VoUC71JjpG6P/w+Sgvvbs1tYfUXvY61101iKHRIgRXbEZ9lNKKw7iEIy21bqx+V56UWY RAwhILRURBXWB6pBmHbqh04wQcglUDHoH8MmbzAPPah6nGORSlBWoeql8juDlRVPWOhr PXm+fKZBn0m+K6gnHGg6yPo3JfUjfrc0OUFbE6rKVZE2K3sep6r30wAGQXO4DYVD1mJL M6tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780576456; x=1781181256; h=to:cc:date:message-id:subject:mime-version:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=n4DW0XSwiOyxj1EKUTyVh6q2KRBTWGSiO3JZYbckvps=; b=V8qmnQ1wi/O1rXdxUTd5afkWMcbFJuHrAyEjqBavq1RBJt0WvdWwPM0jGPzbFuAkmi d0IsC9cMa55L6DHM6euQ0PiOyw46Cyc7/Szh+PgjjcmPkeXEmX55zxoSBC+2IR4Qf8WI Tjd9fhAubyEjpxMqLAa7Fk17hffV0yrCDLNK1DS21eh1zq5psRrk7hccfMKseEJhNpll E/fw0HN8pda1zCAf7B3LYU+dv6EcigaHZQh3C6laGs6esS0lupGxFtZUfwkCMek3ZAYP rWj3OB755okZhOIaQ8HfBZ/hjtK0dQI0+umcR50499OmqTn1Sw3fWn6rdhCGyyXmbvzU jzVQ== X-Gm-Message-State: AOJu0YzcupWKDBjQR+wAVOaiCPPg4Crp83hFA3fbyvsFYHf/YUzW51SP n8a13YUz6+7QYR9Uf4LtY/Pb08OL6gjxf+Vjlh/xX7lOb49vkLQzG/V3HnuvwU1z X-Gm-Gg: Acq92OHGyjLUpPWnRFdwUOXfmbmKMmtIAxv6yHkv1xUtK72ET7gZceeEeFZ2u9wyIm+ aleBIrBcFj1sk/k2cnowDgE4MgK0IXLFuqzYnJ6sLC+TH+xbhviA6seXUGk5oMrzt8PVGvCaFbi cFiZGmo2amh5/JDSbT5L+MrD8JzayDDzoJerVO727Iro4E1y+p+S3Kjh3quA2FB5VxrzZIdcP52 j0lRTCL2epWU6sn/qCo3xo1ZTLtrYMzs61D9xXWZUKwcKatkVci6TbNsT5NJuTCJh07ir9luFYd azkzCiA/ZplhRqiAKFsFGnXTi5gILLDra8loCMvq0bMkdxOBuuXkF3GH/NLNkwcL/QM0jPZviu8 cv34hN+DTtNaUQWnrwKiG43oLSROQ9fcJO8CPRXz/b/q8MprMxUHprE+zyQNQ9yi1z3yn9fZdGG cnTAybegzG9tFH04oAiRPbVfp0ASP71z1ECzgEKe5lmBs= X-Received: by 2002:a17:902:b58c:b0:2b9:e82f:bfef with SMTP id d9443c01a7336-2c163fa4e05mr55376135ad.21.1780576456187; Thu, 04 Jun 2026 05:34:16 -0700 (PDT) Received: from smtpclient.apple ([185.135.79.161]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2c16609e2d7sm60007065ad.39.2026.06.04.05.34.13 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Jun 2026 05:34:15 -0700 (PDT) From: Chao Li Content-Type: multipart/mixed; boundary="Apple-Mail=_EDC0B7C8-ED56-45DD-9DB0-36949B1E41DB" Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.600.51.1.1\)) Subject: Fix OAuth validator docs for error_detail on internal errors Message-Id: <0281836A-F5FF-41A5-9EE1-656C1FAAC6B2@gmail.com> Date: Thu, 4 Jun 2026 20:33:39 +0800 Cc: Jacob Champion To: Postgres hackers X-Mailer: Apple Mail (2.3864.600.51.1.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --Apple-Mail=_EDC0B7C8-ED56-45DD-9DB0-36949B1E41DB Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi, While testing =E2=80=9C[d438a3659] oauth: Let validators provide failure = DETAILs=E2=80=9D, I noticed a tiny doc issue. With this feature, when a validator returns false, result->error_detail = can carry an error message. However, it seems that the previous = paragraph was not updated: ``` A validator may return false to signal an = internal error, in which case any result parameters are ignored and the connection = fails. ``` =E2=80=9CAny result parameters are ignored=E2=80=9D is no longer = accurate; it should be something like =E2=80=9Cany result parameters = except result->error_detail are ignored=E2=80=9D. This patch just makes = that tiny doc fix. Best regards, -- Chao Li (Evan) HighGo Software Co., Ltd. https://www.highgo.com/ --Apple-Mail=_EDC0B7C8-ED56-45DD-9DB0-36949B1E41DB Content-Disposition: attachment; filename=v1-0001-doc-Clarify-OAuth-validator-error_detail-handling.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="v1-0001-doc-Clarify-OAuth-validator-error_detail-handling.patch" Content-Transfer-Encoding: quoted-printable =46rom=207c70a33a07856df88071ac7991ced1e99fad0dea=20Mon=20Sep=2017=20= 00:00:00=202001=0AFrom:=20"Chao=20Li=20(Evan)"=20=0A= Date:=20Thu,=204=20Jun=202026=2019:23:59=20+0800=0ASubject:=20[PATCH=20= v1]=20doc:=20Clarify=20OAuth=20validator=20error_detail=20handling=0A=0A= ValidatorModuleResult.error_detail=20is=20still=20consulted=20when=20= validate_cb=0Areturns=20false=20to=20signal=20an=20internal=20error.=20=20= Do=20not=20describe=20all=20result=0Aparameters=20as=20ignored=20in=20= that=20case.=0A=0AAuthor:=20Chao=20Li=20=0A---=0A=20= doc/src/sgml/oauth-validators.sgml=20|=207=20++++---=0A=201=20file=20= changed,=204=20insertions(+),=203=20deletions(-)=0A=0Adiff=20--git=20= a/doc/src/sgml/oauth-validators.sgml=20= b/doc/src/sgml/oauth-validators.sgml=0Aindex=208aad470a464..7015664f26c=20= 100644=0A---=20a/doc/src/sgml/oauth-validators.sgml=0A+++=20= b/doc/src/sgml/oauth-validators.sgml=0A@@=20-399,9=20+399,10=20@@=20= typedef=20struct=20ValidatorModuleResult=0A=20=20=20=20=0A=20=20=20= =20=0A=20=20=20=20=20A=20validator=20may=20return=20= false=20to=20signal=20an=20internal=20error,=0A-=20=20= =20=20in=20which=20case=20any=20result=20parameters=20are=20ignored=20= and=20the=20connection=20fails.=0A-=20=20=20=20Otherwise=20the=20= validator=20should=20return=20true=20to=20indicate=0A= -=20=20=20=20that=20it=20has=20processed=20the=20token=20and=20made=20an=20= authorization=20decision.=0A+=20=20=20=20in=20which=20case=20the=20= connection=20fails.=20Except=20for=0A+=20=20=20=20= result->error_detail,=20all=20result=20= parameters=20are=0A+=20=20=20=20ignored.=20Otherwise=20the=20validator=20= should=20return=20true=20to=0A+=20=20=20=20indicate=20= that=20it=20has=20processed=20the=20token=20and=20made=20an=20= authorization=20decision.=0A=20=20=20=20=0A=20=20=20=20=0A=20= =20=20=20=20In=20either=20failure=20case=20(validation=20error=20or=20= internal=20error)=20the=20module=20may=0A--=20=0A2.50.1=20(Apple=20= Git-155)=0A=0A= --Apple-Mail=_EDC0B7C8-ED56-45DD-9DB0-36949B1E41DB--