exchange

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

commit 422b0ffd4cefb4717bbc9fbb7be442aff3a13c76
parent add9edbf5cfa419a7f999cf8a54109b35cea18e6
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue, 16 Nov 2021 19:31:27 +0100

fix oauth_username issue

Diffstat:
Msrc/exchangedb/exchange-0001.sql | 2+-
Msrc/exchangedb/irbt_callbacks.c | 2+-
Msrc/exchangedb/lrbt_callbacks.c | 4++--
Msrc/include/taler_exchangedb_plugin.h | 2+-
4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/exchangedb/exchange-0001.sql b/src/exchangedb/exchange-0001.sql @@ -82,7 +82,7 @@ COMMENT ON COLUMN wire_targets.h_payto IS 'Unsalted hash of payto_uri'; COMMENT ON COLUMN wire_targets.kyc_ok IS 'true if the KYC check was passed successfully'; -COMMENT ON COLUMN wire_targets.oauth_username +COMMENT ON COLUMN wire_targets.external_id IS 'Name of the user that was used for OAuth 2.0-based legitimization'; diff --git a/src/exchangedb/irbt_callbacks.c b/src/exchangedb/irbt_callbacks.c @@ -117,7 +117,7 @@ irbt_cb_table_wire_targets (struct PostgresClosure *pg, GNUNET_PQ_query_param_auto_from_type ( &td->details.wire_targets.kyc_ok), GNUNET_PQ_query_param_string ( - td->details.wire_targets.oauth_username), + td->details.wire_targets.external_id), GNUNET_PQ_query_param_end }; diff --git a/src/exchangedb/lrbt_callbacks.c b/src/exchangedb/lrbt_callbacks.c @@ -182,8 +182,8 @@ lrbt_cb_table_wire_targets (void *cls, &td.details.wire_targets.payto_uri), GNUNET_PQ_result_spec_auto_from_type ("kyc_ok", &td.details.wire_targets.kyc_ok), - GNUNET_PQ_result_spec_string ("oauth_username", - &td.details.wire_targets.oauth_username), + GNUNET_PQ_result_spec_string ("external_id", + &td.details.wire_targets.external_id), GNUNET_PQ_result_spec_end }; diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h @@ -218,7 +218,7 @@ struct TALER_EXCHANGEDB_TableData { char *payto_uri; bool kyc_ok; - char *oauth_username; + char *external_id; } wire_targets; struct