[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-merchant] branch master updated: -state is actually not part of r
From: |
gnunet |
Subject: |
[taler-merchant] branch master updated: -state is actually not part of redirect_uri, adjust test |
Date: |
Fri, 03 Nov 2023 23:45:15 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository merchant.
The following commit(s) were added to refs/heads/master by this push:
new 6c8c7da9 -state is actually not part of redirect_uri, adjust test
6c8c7da9 is described below
commit 6c8c7da9412fd44055b2a42f37f5d495e1164da7
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Fri Nov 3 23:45:11 2023 +0100
-state is actually not part of redirect_uri, adjust test
---
src/testing/test_kyc_api.conf | 1 +
src/testing/testing_api_cmd_kyc_get.c | 12 +++++-------
2 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/src/testing/test_kyc_api.conf b/src/testing/test_kyc_api.conf
index bbacbe40..6bd02b43 100644
--- a/src/testing/test_kyc_api.conf
+++ b/src/testing/test_kyc_api.conf
@@ -51,6 +51,7 @@ KYC_OAUTH2_INFO_URL = http://localhost:6666/api/user/me
KYC_OAUTH2_CLIENT_ID = taler-exchange
KYC_OAUTH2_CLIENT_SECRET = exchange-secret
KYC_OAUTH2_POST_URL = http://example.com/
+KYC_OAUTH2_CONVERTER_HELPER = taler-exchange-kyc-oauth2-test-converter.sh
[kyc-legitimization-deposit-any]
OPERATION_TYPE = DEPOSIT
diff --git a/src/testing/testing_api_cmd_kyc_get.c
b/src/testing/testing_api_cmd_kyc_get.c
index 8c1e8fb4..a8f29264 100644
--- a/src/testing/testing_api_cmd_kyc_get.c
+++ b/src/testing/testing_api_cmd_kyc_get.c
@@ -192,18 +192,18 @@ kyc_get_cb (void *cls,
GNUNET_free (dec);
TALER_TESTING_FAIL (cs->is);
}
- eq += strlen ("/kyc-proof/");
- eq = strstr (eq, "state=");
+ GNUNET_free (dec);
+
+ eq = strstr (url, "&state=");
if (NULL == eq)
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Received unexpected 'state'-less KYC URL `%s' (%s)\n",
url,
dec);
- GNUNET_free (dec);
TALER_TESTING_FAIL (cs->is);
}
- eq += strlen ("state=");
+ eq += strlen ("&state=");
nq = strchr (eq, '&');
if (NULL == nq)
nq = eq + strlen (eq);
@@ -216,11 +216,9 @@ kyc_get_cb (void *cls,
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Received unexpected KYC URL `%s' (%s) - no h_payto in
state\n",
url,
- dec);
- GNUNET_free (dec);
+ eq);
TALER_TESTING_FAIL (cs->is);
}
- GNUNET_free (dec);
}
break;
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-merchant] branch master updated: -state is actually not part of redirect_uri, adjust test,
gnunet <=