oauth2 with GMail?

Grant Edwards grant.b.edwards at gmail.com
Sun Sep 26 17:38:56 UTC 2021


On 2021-09-26, Tavis Ormandy <taviso at gmail.com> wrote:
> On 2021-09-26, Grant Edwards wrote:
>> I'm trying to figure out how to use oauth2 for SMTP/IMAP (mostly SMTP)
>> with Gmail [...]
>>
>> But, I get stuck when I get to the rather vague part of the
>> instructions that say to go to https://console.cloud.google.com/apis/credentials,
>> create a project and download credentials.
>>
>> Google seems to require I that pre-register my project's domain (which
>> I don't have) in order to generate credentials. Am I doing something
>> wrong?
>
> Hmm - but the reason you want to do this is because you have a domain
> where application specific passwords are disabled for policy reasons?

No, I don't have any domain at all. There is no "project", and I'm not
actually creating an application -- but have to pretend that you are
in order to use OAUTH2 with GMail.

> If you don't have a domain, then you can do it the easy peasy way,
> just generate an application specific password:

That requires 2FA be enabled on the GMail account -- which is probably
what I should do instead of wrestling with OAUTH2.

--
Grant





More information about the Mutt-users mailing list