-
Notifications
You must be signed in to change notification settings - Fork 34
Description
Hi!
I've been looking into communicating with Office365 and Gsuite through oauth tokens and apparently to do so we need the SASL XOAUTH2 format.
I was wondering if this is supported by the default ruby smtp gem and if not are there plans to support this? I couldn't find anything about the protocol through the official documentation and by looking at the code.
Maybe it's as simple as providing the correct protocol to the library and do the hashing of the access token myself but I'm not sure. Any hints on this specific topic?
There's a visible trend of providers moving towards oauth and supporting this would not only benefit this library but also Rails since it uses the gem under the hood.
For example:
It would allow ruby / rails apps to authenticate on behalf of the user without sacrificing security in the process which often is the case right now.
Currently if you want to send emails on behalf of the user you need people to:
- Disable security defaults
- Enable SMTP
- Store their real password encrypted (but with the possibility to decrypt since you need the password to authenticate)
Kind regards
Jens