cURL / Mailing Lists / curl-library / Single Mail

curl-library

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

From: Kyle L. Huff <kyle.huff_at_curetheitch.com>
Date: Mon, 26 Aug 2013 17:56:31 -0400

On Mon, Aug 26, 2013 at 5:53 PM, Kyle L. Huff <kyle.huff_at_curetheitch.com> wrote:
> curl --url "smtps://smtp.gmail.com:465" --user
> kyle.huff_at_gmail.com;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
> times...)
>

Well, disregard, that was my bad -- I didn't have the --user option in
quotes, and bash was probably terminating the command at the
semi-colon... That is a lame mistake.

Adding quotes, it does what I expect it to do.

-- 
Kyle L. Huff
curetheitch.com
webpg.org
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2013-08-26