This project is read-only.

is there an error with creating an oauth imap login for google?

Oct 30, 2013 at 4:28 AM
Oauth2 login for gmail is failing for me.
debugging inside ImapBase.SendAndRecieve the variable inspector shows:

command = "AUTHENTICATE XOAUTH2 \"dXNlcj1yZXBvcnRlckBmbGlnaHRjZW50cmUuY29tAWF1dGg9QmVhcmVyIHlhMjkuQUhFUzZaUmNoenlTTDFRbTgwdVQyQ3J6ekxWVnlEVFJEeVY1OUNXZS1XLVVfdzFuUWZ6eQoBAQ==\""

(incedently this fails to oauth, and causes a hang, i've raised a seperate issue about the hang)

https://developers.google.com/gmail/xoauth2_protocol#initial_client_response_1 shows as an example:
C: A01 AUTHENTICATE XOAUTH2 dXNlcj1zb21ldXNlckBleGFtcGxlLmNvb
QFhdXRoPUJlYXJlciB2RjlkZnQ0cW1UYzJOdmIzUmxja0JoZEhSaGRtbHpkR0
V1WTI5dENnPT0BAQo=
S: A01 OK Success

note the lack of quotation marks around the encoded oauth token. Is this an error?
Coordinator
Oct 30, 2013 at 6:46 AM
Edited Oct 30, 2013 at 3:01 PM
Hi AartBluestoke,

thank you, I will review the bug about the hang on wrong token.
To your question about the authentication failing: I see the lack of quotation marks, however it still works fine for me through the sample application. I will remove quotation marks, so the request is done like described in documentation.

Kind regards,

Pavel
Coordinator
Oct 30, 2013 at 8:52 PM
The lastest code in repository now contains a fix for the hang issue. I also removed the quotation marks when sending the token.

Greets,

Pavel