Unofficial archive. This is a read-only, community-run archive of the Apple Support Community. It is not affiliated with or endorsed by Apple Inc.

Mail and Google's OAuth 2.0 policy

I changed my Google password for security reasons but when I try to update my email account password in Mail on my iMac, I get an Error 400:invalid_request message saying Mail (my version is 11.5) does not comply with Google's OAuth 2.0 policy - so won't let me update my password and take my Mail account online.

Any advice on how to get round this?

My iMac is an old 2009 version, using High Sierra, 10.13.6


thanks

41 replies

This might be fine if your iMac is a within a certain age but with a mid-2010 or 2011 iMac, running High Sierra 10.13.6 is as high as Apple will allow the OS to go.

I get exactly the same problem as reported above - all my Gmail accounts within the Mail app are suddenly non-operational because I changed the password as part of a security review (prompted by Google) and from this point I have been unable to receive mail to my Gmail account using the Mail app on my iMac. The password field does not appear on the Details screen within the Internet Accounts part of Systems Preferences - I get the following:

You can't sign in to this app because it doesn't comply with Google's OAuth 2.0 policy for keeping apps secure.

You can let the app developer know that this app doesn't comply with one or more Google validation rules.

So I am letting the app developer know so that Mail can be updated to cope with it...and asking for this upgrade will be available to users of Mail on High Sierra. Currently I am running Mail v 11.5 (2018).

The only workaround I can use on the iMac at the moment is webmail.

I just went thru this myself with two sessions with Apple Support. We tried multiple attempts to fix my gmail account in Apple Mail after a gmail password update. I finally deleted the gmail account from Mail and tried to re-add it, also with failures.


For me, the solution was in 'System Settings/ Desktop & Dock' and set Google Chrome as the default browser (I had to download Chrome and install).


Hard to believe that Google is so petty that you HAVE TO use Chrome to authenticate your addition of gmail to Apple Mail after I updated my password in gmail. Google gives no indication of the failed issue when using Safari (a "400" error with a snarky comment). There is a reason I am getting rid of my Google accounts, apps, etc.


Rat Finks! [They know]


If using operating system 10.13.06 (High Sierra) or earlier, that is the problem. Some computers like my 2015 MacBook Air were compatible with a newer MacOS but hadn't updated for lack of enough free storage. Cleaning out junk files gave me enough storage to download 10.15.7 (Catalina) and the problem was solved with the newer built-in Mail app.


See if your computer is compatible with an updated MacOS.

https://www.macworld.com/article/673697/what-version-of-macos-can-my-mac-run.html


If so, update and the problem is likely solved. If not, you might have to convince Apple to upgrade/fix the Mail app in 10.13.06 (High Sierra), unless someone else has a solution.



If compatible, simply upgrade the operating system and the problem is resolved with the newer built-in Mail app.

In my case I had to first clean out enough junk files to leave me with enough storage to download the new operating system.


With 10.13.6 (High Sierra) or older I don't have a solution.

Succeeded by upgrading my 2015 MacBook Air operating system from 10.13.06, to 10.15.7 (Catalina). Once I discovered that it was compatible, I had to clean up useless filed to gain enough storage for the new

You need to change the way you authenticate on Google. For this:

  • go on your Google Account -> Security -> 2-factor authentication -> Application passwords
  • create a password for Mail on your Mac
  • on your Mac, in the Internet Accounts settings , remove the Google account that is failing (i.e. the one that shows with a Google icon)
  • create a new account that is not using the Google conduit (last option in the list which reads something like "Create another account"), enter your Google email address and the application password created in the previous step
  • you're set!


after a crash of ssd , In high Sierra , google didn't accept me to use my long passwords

a bypass is to generate application password , 16 bytes long (generated by google)

this bypass was not easy to find , it is an emergency solution (without upgrading OS)


a few days after I upgraded to Mojave , and I put new long passwords(choosed by me) , leaving application passwords

MAIL application in high Sierra is not compatible with OAUTH2 (and long passwords)

MAIL application in Mojave is compatible with OAUTH2 (and long passwords)

i was worry to upgrade , by having other troubles


Webmail seems to be the only solution right now for Google Mail, unless Apple is willing to upgrade OS Mail for High Sierra 10.13.6. iCloud Mail does work, which may allow for a solution if you want to change from Google Mail or forward to iCloud.

Doesn't matter. The mail.app might work (haven't tested. Using Thunderbird). But Google won't hook up to the Calendar.app, regardless. So, I've stopped using Calendar.app and using the calendar in Thunderbird instead, which is perfectly OK with Google Calendar, Google Mail, etc.

"My iMac is an old 2009 version, using High Sierra, 10.13.6"


That's your problem. I just got dinged with this, myself. Looks like we'll have to move into the 2020's and upgrade the OS. Which for this machine, means getting a new machine. Apple quit supporting these machines with 10.13.

Have an Mac Pro with High Sierra. Connecting the Mac Calendar with Google Calendar worked fine. Last week I started using a new disk with a new installation of the same OS and got the same problem. No way to make Google Calendar accept login.


Simple solution and, in a way better than using the Mac's Calendar: I have used Mozilla Thunderbird (free) as mail client since the ice age. Now I started using its calendar and connected it to Google Calendar in a minute.

Great answer! I added an App Password separate from my gmail password and it worked great. Running macOS High Sierra (10.13.6) on an imac 2012. Thanks!

10.13.6 won't solve this problem. I have 10.13.6 and I can't send to gmail addresses. Apple quit supporting 10.13 years ago. I bit the bullet and bought a this-decade Mac.

Very simple and easy to understand... superb.. ive got an old mac running high sierra 10-13-6 changed password on google accounts had above problem.. followed your instructions to the letter and BAM!!!! straight in back up and running.. cant see what all these other peoples problems are..... just copy and paste the newly created 1 time password generated in the App Password section at bottom of page in your google accounts.. Security..2 step verication.. App Password...name the app ie Gmail and click create...copy n paste the password and follow your steps creating new account in apple mail using create new other account..simple..well done sir...


You don't use that password in Mail, but in a Browser at google or gMail, forget exactly where...it nit your Mail Password nut a separate password.

I had the same problem and I tried a lot of methods. The only one that worked was to upgrade High Sierra to Catalina 10.15.7

We may be driven to a newer Mac or using WebMail only.

I had the trouble on high Sierra ,

I found a method with app password and double authentication (password proposed by google , and only 16 bytes size)

in emergency I adopted this method

before my password were 4 times longer

I consider that I have to choose the password , and only me have to know it

in operating systems the administrator doesn't know password of users , he doesn't propose any one


after I upgraded to Mojave

can I put longer password ?

perhaps to fallback on method "se connecter" if mail is oauth2


double authentication is not my preferred method , I prefer a very stronger password

my question is

what level of mail/Mac OS X is compatible with oauth2 of google ?




I had the same problem and i spent two days to find the solution.

But finally it worked.

You just need to update your macOS to Catalina and restart your Mac.

I tried multiple fixes since I experienced the same issue. Only upgrading High Sierra to Catalina 10.15.7 was successful.

I'm in exactly the same situation. I think we're stuck using webmail until we replace the computer.

Hi Scoop8! I'm having the exact same problem! I have a Mid 2011 iMac running High Sierra 10.13.6 and Mail v11.5, and cannot access my Gmail account through the Mail app any longer. Every time I try to add it, I am getting the same Error message as you. I hope the app developer you contacted upgrades the Mail app so we can use it again. I can't afford a new iMac, so, like you High Sierra 10.13.6 is as high as I can go. For now, like you, I'm having to use webmail and I really don't like it at all. Thanks for clearing up this for me as it was making me crazy!


Apple announced it would stop supporting High Sierra as of Sep 2020. Speaking as a High Sierra user myself, I don't blame them for doing what they said they'd do...we've had plenty of notice. Looks like it's time to put the old girl out to pasture.

Any Mac that can do 10.12.3 can do 10.13.6


 Start up from macOS Recovery

Option-⌘-R

Upgrade to the latest macOS compatible with your Mac.


APFS won't work for Sierra, Sierra needs MacOS Extended Journaled. High Sierra won't work for APFS on earlier Macs.


What has often worked for others is to use this Restore Method instead of CMD+r keys...


Option-⌘-R

Upgrade to the latest macOS compatible with your Mac.


2017 iMac failing to install Sierra in re… - Apple Community

Clean Install of High Sierra: Multiple Fa… - Apple Community


Sorry, my last post was assuming that your Google login is a gmail address. In your case, you need to specify respectively Google’s IMAP and SMTP servers, i.e. if I’m not mistaken imap.gmail.com and smtp.gmail.com

Currently on Big Sur and Apple's Mail still does not support oauth2.


I'm running Big Sur on a Mac Mini Late 2012 using Open Core Legacy Patcher. Big Sur is the end of the line supporting the ivy-bridge motherboard, and I don't have the money to buy a newer computer.


I don't want to use IMAP but POP, because I want to delete mails from the server as soon as I download them to my computer. I don't want to share my email on different devices.


I cannot use Google 2-factor authentication and generate an App Password, because it requires me to give Google my phone number, which is not going to happen. Hence, I'm stuck with Mozilla Thunderbird, which is not as nice as Apple Mail.


So please, Apple, please have mercy and give us oauth2 and a patch for older mail clients.

Having EXACTLY the same problem on a 2010 iMac with same OS (10.13.6).


PLEASE help!

Thanks. Tried and failed.

I got the password from Gmail, but don't get the password option under the account info in Mail. I can only get a password option if I go to Server Settings and click through to Edit SMTP server settings. Tried adding the password in there but without any joy.


I have two gmail accounts. One still working the other is not

since changing password. I am on macbook pro ios 10.12.6 and no upgrades allowed.

👍

I have macos sierra 10.12.6. can't seem to update to anything else and have same issue with gmail all of the sudden not coming in Mail. ironically, it happened the minute i bought an updated iphone.

how did you do that could you please explain?? Thanks

How to fix my google account on my Mac

I did everything here and I received this error...



I checked to make sure everything was spelled correctly. Anymore help you can give is greatly appreciated.

Thank you!


[Edited by Moderator]

<Responded in error>

thank you so much for your help! I'm right there with ya, really don't want to buy another iMac, this one's fine, uh well, kinda, except for technology changing overnite.....

amazing, thank you this worked on 2010 imac :)