diff options
author | Sebastian <sebasjm@gmail.com> | 2024-10-30 14:09:34 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-10-30 14:09:34 -0300 |
commit | 2e46fc9772c35a3f4bc042b61d8941babbbaca24 (patch) | |
tree | 73cff76f665b823465f488a29ce37bd6dbabd805 /src/bank/mb_common.c | |
parent | 1e015377f88bfe6208987145a05ba6cbe78e0597 (diff) |
support bearer token for bank auth
Diffstat (limited to 'src/bank/mb_common.c')
-rw-r--r-- | src/bank/mb_common.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/bank/mb_common.c b/src/bank/mb_common.c index d113ddf9..194be386 100644 --- a/src/bank/mb_common.c +++ b/src/bank/mb_common.c @@ -55,6 +55,19 @@ TALER_MERCHANT_BANK_setup_auth_ ( GNUNET_free (up); break; } + case TALER_MERCHANT_BANK_AUTH_BEARER: + { + if ( (CURLE_OK != + curl_easy_setopt (easy, + CURLOPT_HTTPAUTH, + CURLAUTH_BEARER)) || + (CURLE_OK != + curl_easy_setopt (easy, + CURLOPT_XOAUTH2_BEARER, + auth->details.bearer.token)) ) + ret = GNUNET_SYSERR; + break; + } } return ret; } |