summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-11-07 23:46:23 +0100
committerChristian Grothoff <christian@grothoff.org>2021-11-07 23:46:23 +0100
commit398ef9d971019cb2cce28b5936f491bc0738b046 (patch)
tree83a82d365a1c6f793b15154feb79700306f01c0e
parent051deacb979d0efcdde9f08a09dafd3e99fb49dd (diff)
downloadexchange-398ef9d971019cb2cce28b5936f491bc0738b046.tar.gz
exchange-398ef9d971019cb2cce28b5936f491bc0738b046.tar.bz2
exchange-398ef9d971019cb2cce28b5936f491bc0738b046.zip
implement OAuth 2.0 service
-rw-r--r--src/include/taler_testing_lib.h12
-rw-r--r--src/testing/testing_api_cmd_oauth.c2
2 files changed, 13 insertions, 1 deletions
diff --git a/src/include/taler_testing_lib.h b/src/include/taler_testing_lib.h
index 05ace6390..1f678b434 100644
--- a/src/include/taler_testing_lib.h
+++ b/src/include/taler_testing_lib.h
@@ -2243,6 +2243,18 @@ TALER_TESTING_cmd_proof_kyc (const char *label,
unsigned int expected_response_code);
+/**
+ * Starts a fake OAuth 2.0 service on @a port for testing
+ * KYC processes.
+ *
+ * @param label command label
+ * @param port the TCP port to listen on
+ */
+struct TALER_TESTING_Command
+TALER_TESTING_cmd_oauth (const char *label,
+ uint16_t port);
+
+
/* *** Generic trait logic for implementing traits ********* */
diff --git a/src/testing/testing_api_cmd_oauth.c b/src/testing/testing_api_cmd_oauth.c
index d30bff974..6cfad32bc 100644
--- a/src/testing/testing_api_cmd_oauth.c
+++ b/src/testing/testing_api_cmd_oauth.c
@@ -245,4 +245,4 @@ TALER_TESTING_cmd_oauth (const char *label,
}
-/* end of testing_api_cmd_kyc_proof.c */
+/* end of testing_api_cmd_oauth.c */