Open AartBluestoke opened 10 years ago
i found http://www.limilabs.com/blog/oauth2-gmail-imap-web-applications helpful for setting up the Oauth side of things (as one of the code examples from the .net google api didn't work for me)
I've previously accepted a pull request to make this work, but I haven't tested it myself. The authentication type is SaslOAuth
. Checkout #67.
that appears to be Oauth 1. according to https://developers.google.com/accounts/docs/OAuth_ref, "OAuth 1.0 has been officially deprecated as of April 20, 2012" (it'll probably still work for another year or two -- googles deprecation policy is for them to continue working till some time 2015).
Oauth2 is a bit more picky about what headers and fields it accepts, so probably won't be a nice neat 10 line patch.
Oauth2 is becoming more popular, especially with gmail. It would be nice to be able to authenticate that way.