aboutsummaryrefslogtreecommitdiff
path: root/src/include/taler_merchant_bank_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/taler_merchant_bank_lib.h')
-rw-r--r--src/include/taler_merchant_bank_lib.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/include/taler_merchant_bank_lib.h b/src/include/taler_merchant_bank_lib.h
index beaaa516..2971690a 100644
--- a/src/include/taler_merchant_bank_lib.h
+++ b/src/include/taler_merchant_bank_lib.h
@@ -43,6 +43,11 @@ enum TALER_MERCHANT_BANK_AuthenticationMethod
* Basic authentication with cleartext username and password.
*/
TALER_MERCHANT_BANK_AUTH_BASIC,
+
+ /**
+ * Bearer token authentication.
+ */
+ TALER_MERCHANT_BANK_AUTH_BEARER,
};
@@ -85,6 +90,17 @@ struct TALER_MERCHANT_BANK_AuthenticationData
char *password;
} basic;
+ /**
+ * Details for #TALER_MERCHANT_BANK_AUTH_BASIC.
+ */
+ struct
+ {
+ /**
+ * Token to use.
+ */
+ char *token;
+ } bearer;
+
} details;
};