exchange

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

commit ca5e3f8b615bbae748d500e2e5ccbde8ad5ef919
parent f82783075230d4ac2be1a175331f15b54a876606
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun, 13 Apr 2025 23:23:00 +0200

-more logging for next iteration

Diffstat:
Msrc/kyclogic/plugin_kyclogic_oauth2.c | 18++++++++++++++++++
Msrc/kyclogic/taler-exchange-helper-measure-tops-address-check | 3---
2 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/src/kyclogic/plugin_kyclogic_oauth2.c b/src/kyclogic/plugin_kyclogic_oauth2.c @@ -763,6 +763,8 @@ initiate_task (void *cls) 1)); if (NULL == ih->initial_address) { + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Staring challenger without initial address\n"); GNUNET_assert (CURLE_OK == curl_easy_setopt (eh, CURLOPT_POSTFIELDS, @@ -770,6 +772,13 @@ initiate_task (void *cls) } else { + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Staring challenger with initial address\n"); + json_dumpf (ih->initial_address, + stderr, + JSON_INDENT (2)); + fprintf (stderr, + "\n"); if (GNUNET_OK != TALER_curl_easy_post (&ih->ctx, eh, @@ -843,8 +852,17 @@ oauth2_initiate (void *cls, ih->task = GNUNET_SCHEDULER_add_now (&initiate_task, ih); if (NULL != context) + { + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Initiating OAuth2 validation with context\n"); + json_dumpf (context, + stderr, + JSON_INDENT (2)); + fprintf (stderr, + "\n"); ih->initial_address = json_incref (json_object_get (context, "initial_address")); + } return ih; } diff --git a/src/kyclogic/taler-exchange-helper-measure-tops-address-check b/src/kyclogic/taler-exchange-helper-measure-tops-address-check @@ -137,9 +137,6 @@ CUSTOM_MEASURES=$(jq -n \ # Then trigger Challenger address check via oauth2, kyc-check-postal-registration NEW_RULES=$(echo "$CURRENT_RULES" | jq '(.rules[] |= if (.measures[0]=="kyx") then .measures=["custom-address-investigation"] else . end)' | jq --argjson cm "$CUSTOM_MEASURES" '.custom_measures=$cm') -# Remove test rules that should now be satisfied -NEW_RULES=$(echo "$NEW_RULES" | jq 'del(.rules[] | select (.rule_name=="balance-testing-limit1") )') - # Finally, output the new rules. # See https://docs.taler.net/taler-kyc-manual.html#tsref-type-AmlOutcome # for the required output format.