diff options
author | Kyle L. Huff <kyle.huff@curetheitch.com> | 2013-08-25 13:17:35 -0400 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2013-08-26 10:16:32 +0100 |
commit | 34122800b898596f3657f89621dd6762f227653f (patch) | |
tree | febbc0929d5326570895c809539f8d2a5e150296 /lib/imap.h | |
parent | 7f41eab39524ee73ead3af815234b98dfa7904dc (diff) | |
download | curl-34122800b898596f3657f89621dd6762f227653f.tar.gz |
imap: added basic SASL XOAUTH2 support
Added the ability to use an XOAUTH2 bearer token [RFC6750] with IMAP for
authentication using RFC6749 "OAuth 2.0 Authorization Framework".
The bearer token is expected to be valid for the user specified in
conn->user. If CURLOPT_XOAUTH2_BEARER is defined and the connection has
an advertised auth mechanism of "XOAUTH2", the user and access token are
formatted as a base64 encoded string and sent to the server as
"A001 AUTHENTICATE XOAUTH2 <bearer token>".
Diffstat (limited to 'lib/imap.h')
-rw-r--r-- | lib/imap.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/imap.h b/lib/imap.h index bc0a83d48..1d4faabd7 100644 --- a/lib/imap.h +++ b/lib/imap.h @@ -43,6 +43,7 @@ typedef enum { IMAP_AUTHENTICATE_DIGESTMD5_RESP, IMAP_AUTHENTICATE_NTLM, IMAP_AUTHENTICATE_NTLM_TYPE2MSG, + IMAP_AUTHENTICATE_XOAUTH2, IMAP_AUTHENTICATE_FINAL, IMAP_LOGIN, IMAP_LIST, |