summaryrefslogtreecommitdiff
path: root/src/kyclogic
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-11-02 16:22:50 +0100
committerChristian Grothoff <christian@grothoff.org>2023-11-02 16:22:50 +0100
commit4a775c6baacd14ce143155a063b0d3ba45a26f9e (patch)
tree50ca34460b3b5541555167c13382d897217465fa /src/kyclogic
parent390cd808eed0ee081606144bad762ef28ed89c0e (diff)
downloadexchange-4a775c6baacd14ce143155a063b0d3ba45a26f9e.tar.gz
exchange-4a775c6baacd14ce143155a063b0d3ba45a26f9e.tar.bz2
exchange-4a775c6baacd14ce143155a063b0d3ba45a26f9e.zip
/setup is a POST
Diffstat (limited to 'src/kyclogic')
-rw-r--r--src/kyclogic/plugin_kyclogic_oauth2.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/kyclogic/plugin_kyclogic_oauth2.c b/src/kyclogic/plugin_kyclogic_oauth2.c
index 9bf9be1bc..8e7e3d3cd 100644
--- a/src/kyclogic/plugin_kyclogic_oauth2.c
+++ b/src/kyclogic/plugin_kyclogic_oauth2.c
@@ -695,6 +695,22 @@ initiate_task (void *cls)
curl_easy_setopt (eh,
CURLOPT_URL,
pd->setup_url));
+ GNUNET_assert (CURLE_OK ==
+ curl_easy_setopt (eh,
+ CURLOPT_POST,
+ 1));
+ GNUNET_assert (CURLE_OK ==
+ curl_easy_setopt (eh,
+ CURLOPT_POSTFIELDS,
+ ""));
+ GNUNET_assert (CURLE_OK ==
+ curl_easy_setopt (eh,
+ CURLOPT_FOLLOWLOCATION,
+ 1L));
+ GNUNET_assert (CURLE_OK ==
+ curl_easy_setopt (eh,
+ CURLOPT_MAXREDIRS,
+ 5L));
GNUNET_asprintf (&hdr,
"%s: Bearer %s",
MHD_HTTP_HEADER_AUTHORIZATION,