diff options
author | Özgür Kesim <oec-taler@kesim.org> | 2023-06-27 12:41:22 +0200 |
---|---|---|
committer | Özgür Kesim <oec-taler@kesim.org> | 2023-06-27 12:41:22 +0200 |
commit | d3d744a444e0afd33e7dec02a62a878aaab2c2a2 (patch) | |
tree | f6a9f0eaeaa1b1127a5df7b10503cc4fb8516f9d /src/include | |
parent | 1be14a34161cd04c61f6df506bead0d8ca64b76d (diff) | |
download | exchange-d3d744a444e0afd33e7dec02a62a878aaab2c2a2.tar.xz |
[testing] start an oauth2 server which returns static birthdates
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/taler_testing_lib.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/src/include/taler_testing_lib.h b/src/include/taler_testing_lib.h index 2ef7ef602..8950e71ba 100644 --- a/src/include/taler_testing_lib.h +++ b/src/include/taler_testing_lib.h @@ -2243,14 +2243,25 @@ TALER_TESTING_cmd_proof_kyc_oauth2 ( /** * Starts a fake OAuth 2.0 service on @a port for testing - * KYC processes. + * KYC processes which also provides a @a birthdate in a response * * @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); +TALER_TESTING_cmd_oauth_with_birthdate (const char *label, + const char *birthdate, + uint16_t port); + +/** + * 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 + */ +#define TALER_TESTING_cmd_oauth(label, port) \ + TALER_TESTING_cmd_oauth_with_birthdate ((label), NULL, (port)) /* ****************** P2P payment commands ****************** */ |