From 6834b1290fa4bd9d6331329282f72f1f67b4d1bf Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 5 Aug 2022 23:33:48 +0200 Subject: -move main oauth2.0 logic into kyclogic plugin --- src/include/taler_kyclogic_plugin.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/taler_kyclogic_plugin.h b/src/include/taler_kyclogic_plugin.h index b5f8b83ca..0cfade33b 100644 --- a/src/include/taler_kyclogic_plugin.h +++ b/src/include/taler_kyclogic_plugin.h @@ -81,7 +81,8 @@ enum TALER_KYCLOGIC_KycStatus | TALER_KYCLOGIC_STATUS_PENDING, /** - * The user aborted the check (possibly recoverable). + * The user aborted the check (possibly recoverable) + * or made some other type of (recoverable) mistake. */ TALER_KYCLOGIC_STATUS_USER_ABORTED = TALER_KYCLOGIC_STATUS_USER @@ -123,6 +124,7 @@ struct TALER_KYCLOGIC_WebhookHandle; * Function called with the result of a KYC initiation * operation. * + * @param cls closure * @param ec #TALER_EC_NONE on success * @param redirect_url set to where to redirect the user on success, NULL on failure * @param provider_user_id set to user ID at the provider, or NULL if not supported or unknown @@ -131,6 +133,7 @@ struct TALER_KYCLOGIC_WebhookHandle; */ typedef void (*TALER_KYCLOGIC_InitiateCallback)( + void *cls, enum TALER_ErrorCode ec, const char *redirect_url, const char *provider_user_id, @@ -248,6 +251,7 @@ struct TALER_KYCLOGIC_Plugin * @param cls the @e cls of this struct with the plugin-specific state * @param pd provider configuration details * @param account_id which account to trigger process for + * @param legitimization_uuid unique ID for the legitimization process * @param cb function to call with the result * @param cb_cls closure for @a cb * @return handle to cancel operation early @@ -256,6 +260,7 @@ struct TALER_KYCLOGIC_Plugin (*initiate)(void *cls, const struct TALER_KYCLOGIC_ProviderDetails *pd, const struct TALER_PaytoHashP *account_id, + uint64_t legitimization_uuid, TALER_KYCLOGIC_InitiateCallback cb, void *cb_cls); -- cgit v1.2.3