exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 2e8f7f109a76cae7edae85f4d58851a6e9dbbbb7
parent 53643aa7b9c563ca3d6535b42dfc6fe71d5a13d2
Author: Christian Grothoff <christian@grothoff.org>
Date:   Mon, 12 Oct 2026 23:53:02 +0200

error_description is OPTIONAL as per RFC

Diffstat:
Msrc/kyclogic/plugin_kyclogic_oauth2.c | 9+++++++--
1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/kyclogic/plugin_kyclogic_oauth2.c b/src/kyclogic/plugin_kyclogic_oauth2.c @@ -1198,11 +1198,16 @@ handle_proof_error (struct TALER_KYCLOGIC_ProofHandle *ph, { const char *msg; const char *desc; + bool no_desc; struct GNUNET_JSON_Specification spec[] = { GNUNET_JSON_spec_string ("error", &msg), - GNUNET_JSON_spec_string ("error_description", - &desc), + /* RFC 6749, Section 5.2: only "error" is REQUIRED, + "error_description" is OPTIONAL */ + GNUNET_JSON_spec_mark_optional ( + GNUNET_JSON_spec_string ("error_description", + &desc), + &no_desc), GNUNET_JSON_spec_end () }; const char *emsg;