cURL / Mailing Lists / curl-library / Single Mail


Re: [PATCH] OAUTH 2.0 Bearer token support SMTP/IMAP (XOAUTH2)

From: Kyle L. Huff <>
Date: Mon, 26 Aug 2013 17:53:30 -0400

>> a) Was wondering if you could give it a go please against gmail with a valid
>> bearer token

Okay, so I tested it and it works as expected in all of the tests I
demonstrated before with only one exception;

curl --url "smtps://" --user;AUTH=XOAUTH2 --ssl-req --bearer ya29.AHES...EoTg4

With the above command, despite the bearer option being specified (in
addition to the preferred AUTH mechanism being specified in the user
parameter) it still asks for a password -- whats more, XOAUTH2
authentication fails no matter what you enter into the password prompt
(yes, I wasn't positive it was pasting the bearer, so I typed it out
the 60 character camel-case string into the prompt... several

If you remove the ";AUTH=XOAUTH2" portion from the user option, it
functions as expected.


Kyle L. Huff
List admin:
Received on 2013-08-26