diff options
| author | Christian Grothoff <christian@grothoff.org> | 2022-08-07 15:35:06 +0200 | 
|---|---|---|
| committer | Christian Grothoff <christian@grothoff.org> | 2022-08-07 15:35:13 +0200 | 
| commit | 3f99e4f3f8a89dfafcf37fcbf9046134adca436a (patch) | |
| tree | a8535b839f66351884bb5b02e2ac3fc8b1a4d317 /src/kyclogic | |
| parent | 30b833232ea1c4c0ca58635d046af2970b439a3e (diff) | |
-implement new kyc-webhook endpoint
Diffstat (limited to 'src/kyclogic')
| -rw-r--r-- | src/kyclogic/plugin_kyclogic_oauth2.c | 12 | 
1 files changed, 5 insertions, 7 deletions
| diff --git a/src/kyclogic/plugin_kyclogic_oauth2.c b/src/kyclogic/plugin_kyclogic_oauth2.c index 3bcd745c..ac13355e 100644 --- a/src/kyclogic/plugin_kyclogic_oauth2.c +++ b/src/kyclogic/plugin_kyclogic_oauth2.c @@ -556,7 +556,6 @@ return_proof_response (void *cls)            GNUNET_TIME_relative_to_absolute (ph->pd->expiration),            ph->http_status,            ph->response); -  MHD_destroy_response (ph->response);    GNUNET_free (ph->provider_user_id);    GNUNET_free (ph);  } @@ -943,6 +942,7 @@ wh_return_not_found (void *cls)                                                "",                                                MHD_RESPMEM_PERSISTENT);    wh->cb (wh->cb_cls, +          0LLU,            NULL,            NULL,            NULL, @@ -962,10 +962,9 @@ wh_return_not_found (void *cls)   * @param plc callback to lookup accounts with   * @param plc_cls closure for @a plc   * @param http_method HTTP method used for the webhook - * @param url_path rest of the URL after `/kyc-webhook/` + * @param url_path rest of the URL after `/kyc-webhook/$LOGIC/`, as NULL-terminated array   * @param connection MHD connection object (for HTTP headers) - * @param body_size number of bytes in @a body - * @param body HTTP request body + * @param body HTTP request body, or NULL if not available   * @param cb function to call with the result   * @param cb_cls closure for @a cb   * @return handle to cancel operation early @@ -976,10 +975,9 @@ oauth2_webhook (void *cls,                  TALER_KYCLOGIC_ProviderLookupCallback plc,                  void *plc_cls,                  const char *http_method, -                const char *url_path, +                const char *url_path[],                  struct MHD_Connection *connection, -                size_t body_size, -                const void *body, +                const json_t *body,                  TALER_KYCLOGIC_WebhookCallback cb,                  void *cb_cls)  { | 
