From 239a7061f83231f2bac362c6b817a5ae10bd6696 Mon Sep 17 00:00:00 2001 From: Linus Lewandowski Date: Tue, 22 May 2018 12:28:41 +0200 Subject: httpauth: add support for Bearer tokens Closes #2102 --- docs/libcurl/opts/CURLOPT_HTTPAUTH.3 | 4 ++++ docs/libcurl/opts/CURLOPT_XOAUTH2_BEARER.3 | 8 ++++---- docs/libcurl/symbols-in-versions | 1 + 3 files changed, 9 insertions(+), 4 deletions(-) (limited to 'docs/libcurl') diff --git a/docs/libcurl/opts/CURLOPT_HTTPAUTH.3 b/docs/libcurl/opts/CURLOPT_HTTPAUTH.3 index 09a9f996a..7bb45506e 100644 --- a/docs/libcurl/opts/CURLOPT_HTTPAUTH.3 +++ b/docs/libcurl/opts/CURLOPT_HTTPAUTH.3 @@ -56,6 +56,10 @@ defined in RFC2617 and is a more secure way to do authentication over public networks than the regular old-fashioned Basic method. The IE flavor is simply that libcurl will use a special "quirk" that IE is known to have used before version 7 and that some servers require the client to use. +.IP CURLAUTH_BEARER +HTTP Bearer token authentication, used primarily in OAuth 2.0 protocol. + +You can set the Bearer token to use with \fICURLOPT_XOAUTH2_BEARER(3)\fP. .IP CURLAUTH_NEGOTIATE HTTP Negotiate (SPNEGO) authentication. Negotiate authentication is defined in RFC 4559 and is the most secure way to perform authentication over HTTP. diff --git a/docs/libcurl/opts/CURLOPT_XOAUTH2_BEARER.3 b/docs/libcurl/opts/CURLOPT_XOAUTH2_BEARER.3 index 262c63764..8f86ae9ee 100644 --- a/docs/libcurl/opts/CURLOPT_XOAUTH2_BEARER.3 +++ b/docs/libcurl/opts/CURLOPT_XOAUTH2_BEARER.3 @@ -29,11 +29,11 @@ CURLOPT_XOAUTH2_BEARER \- specify OAuth 2.0 access token CURLcode curl_easy_setopt(CURL *handle, CURLOPT_XOAUTH2_BEARER, char *token); .SH DESCRIPTION Pass a char * as parameter, which should point to the zero terminated OAuth -2.0 Bearer Access Token for use with IMAP, POP3 and SMTP servers that support -the OAuth 2.0 Authorization Framework. +2.0 Bearer Access Token for use with HTTP, IMAP, POP3 and SMTP servers +that support the OAuth 2.0 Authorization Framework. -Note: The user name used to generate the Bearer Token should be supplied via -the \fICURLOPT_USERNAME(3)\fP option. +Note: For IMAP, POP3 and SMTP, the user name used to generate the Bearer Token +should be supplied via the \fICURLOPT_USERNAME(3)\fP option. The application does not have to keep the string around after setting this option. diff --git a/docs/libcurl/symbols-in-versions b/docs/libcurl/symbols-in-versions index 7df2d700c..f98609e1d 100644 --- a/docs/libcurl/symbols-in-versions +++ b/docs/libcurl/symbols-in-versions @@ -15,6 +15,7 @@ CURLAUTH_ANY 7.10.6 CURLAUTH_ANYSAFE 7.10.6 CURLAUTH_BASIC 7.10.6 +CURLAUTH_BEARER 7.61.0 CURLAUTH_DIGEST 7.10.6 CURLAUTH_DIGEST_IE 7.19.3 CURLAUTH_GSSAPI 7.55.0 -- cgit v1.2.3