Auth 2.0 Error 400 on Mail account

I try to add my account but I got this message


Authorisation Error
Error 400: invalid_request

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.
Learn more
Request Details
The content in this section has been provided by the app developer. This content has not been reviewed or verified by Google.
If you’re the app developer, make sure that these request details comply with Google policies.
redirect_uri: urn:ietf:wg:oauth:2.0:oob



What's wrong with Apple and Google? Google asks to contact the developer, yes Apple...


It's so frustrating...

Posted on Feb 22, 2023 2:58 AM

Reply
Question marked as Top-ranking reply

Posted on Mar 9, 2023 9:12 PM

I FOUND THE SOLUTION.


People have mentioned it here, but with incomplete steps. So here is how to get it done:


1.) KNOW why this is happening in the first place: it's coz Google says your old mac and old mac OS have insufficient security. With that said, you can only update an old mac for about 7-10 years. Then you're SOL. Keep that in mind. Lucky for us old mac users (I'm running a 2011 MBPro with ElCapitan) -- we are still able to add new GMAIL accounts with a workaround.


2.) As mentioned here, open your GMAIL account preferences by signing into GMAIL by web browser and clicking on your avatar in the upper-right and selecting "Manage your Google Account". Then click on the "Security" tab on the left.


3.) Under "Signing in to Google" ENABLE 2-step verification. This alone will NOT fix it, but it WILL allow you use what Google calls "Less Secure Apps Access". If you notice in your account settings, Google automatically sets this to OFF -- essentially blocking access to any apps that Google dubs 'insufficient security'. Enabling 2-step verification will bring up a third line under "Signing in to Google" that says "App Passwords".


4.) Click on "App Passwords" and this will walk you through generating a password that you can use to manually add a GMAIL account with your old mac.


5.) Select and copy the generated password, go into Apple Mail preferences and select "other" when adding the new email account. Type in your gmail email address, and use the password you copied earlier, in the password field.


If this helps, PLEASE hit the kudos button to bring it to the top!

218 replies

Dec 24, 2023 5:13 AM in response to The Animaster

After much wailing and gnashing of teeth this finally worked for me.


App Password is no longer under "Sign in to Google". Took some searching to find it. After setting up 2-Step Verification it's at "Security/How you sign in to Google/2-Step Verification"...scroll to bottom. But the idiot programmers may have moved it again by now.


Then I tried to open a new email account in Mail with the same email address and it wouldn't let me. Next I thought I would just delete the account and recreate it. I was informed by Mail that this would delete all the data in the account. So I backed up that account emails and then deleted it. Tried to set up a new Gmail account but got the same error message that started all this. So I set up an "Other" account, as suggested, using the same email address as the one deleted and the App Password. This worked. Then I had to wait for over 3000 emails to download. Now my inbox is full of stuff I had trashed. But at least it seems to be working again.


I will now start weaning myself off of all things "Google".

Jan 31, 2024 6:51 PM in response to RetiredCDN

This worked for me:


I noticed that the popup to login into google, when trying to add a new account, was opening in Safari Private Browsing mode. I went digging in Safari's settings, and in the "Advanced" tab under privacy I turned off the "Use advanced tracking and fingerprinting protection" AND the "Allow privacy-preserving measurement of ad effectiveness" and BAM... I was finally able to get past the 400 error that Google was sending back and I was able to authenticate and add my Gmail account to my Internet Accounts.

May 11, 2024 3:04 PM in response to ays177

I'm not sure if it is because I'm running High Sierra, but I did not have "App Passwords" as an option under the "Security" tab. So, while logged into my google account, I went to:


https://myaccount.google.com/apppasswords


and followed the prompts. Write the password down. Copy and paste did not work.


I then deleted the mailbox in the Mail app, and added the new one under type other with the gmail address and the new password. Everything repopulated with no hitches.

Jul 14, 2024 11:35 AM in response to ays177

Thank you, The Animaster. It has resolved my problem and extended my Macbook's lifespan by a few years. I would like to add some details that could be useful:

  • For some reason, the "App Passwords" section did not appear on my "Security" page. I could only access it by searching for 'App Passwords' in the Google Account search field. If your Google account language is not set to English, you must search for the exact string used by Google in your language for this section (e.g., 'Mots de passe des applications' in French).

  • After creating the new password: In Apple Mail, as The Animaster mentioned, make sure to select 'Other' when adding the new email account (you'll need to manually enter all Gmail information). Choosing 'Google account' will result in the same error 'You can't sign in to this app because it doesn't comply with Google's OAuth 2.0 policy for keeping apps secure'.


Good luck!


Mar 12, 2023 1:58 PM in response to vascomark

I did it yesterday on High Sierra and it works.

You need to delete (not just deactivate) the "original" Gmail account before adding it back with "other mail account" .

Then use the "app password" provided by Google and voilà.


I cannot remove this old account otherwise it would be removed from all devices including newer ones.

I don't think so. Your Google account won't be deleted or removed on other computers.


One more thing : I tried to do the same and another old family iMac stuck on Sierra (last authorized OS) and it didn't work counter to the High Sierra Mac. Still seeking for a solution for that one :(

Mar 16, 2023 6:12 PM in response to ays177

I have had this problem adding a gmail account to Mail. If you go to google help and describe the problem they will suggest a 16 digit app password that they will generate. Then go to add accounts in Mail. Do not click on the google symbol click on other account which you see when you scroll down, fill in your google data (email address) and use the generated password. It worked!

Jul 5, 2023 1:01 PM in response to TheAnimaster

I seem to have fixed my issue: I found this page How to download and install macOS - Apple Support

and have managed to download and install a later version of OS (Catalina) manually which has allowed my Gmail accounts to link to Apple Mail again.


I'm sure they will fall down again soon as Apple say my machine doesn't support Catalina, but it will hopefully give me a few weeks to research a new machine, rather than a rush purchase.


My Word and Excel for Mac no longer work with the new OS, but they are as old as the machine (2013) and I'm being directed to use Microsoft 365, so I'll have to see if I can find a workaround for this now.

Jul 11, 2023 6:51 AM in response to The Animaster

Animasters procedure worked for me on my MacBook Pro with High Sierra after figuring out two additional steps:

3a.) "app password" did not show up for me, but I could search it with the search bar on top which brought me to the page mentioned in 4.)

It didn't work right away, I got "password could not be verified" various times, until I had switched on "activities" in Google safety settings (not sure that bit was necessary, I changed it again after everything worked) and then clicked on the "check activity" button in the safety/confirmation email I got from google on my secondary email account regarding the creation of the app password. After that, the account was confirmed.

thx for the help!



Feb 24, 2023 4:12 AM in response to Owl-53

from the link you kindly posted


Still can’t sign in
If you're using an app not made by Google and can't sign in, that
app's sign-in process might not be secure. Try updating to the latest
version of the app and look for the 'Sign in with Google' option that’s
available in many apps. You can also consider switching to a more secure app


Basically switch to another app as Mail doesn't comply with Google



P. Phillips wrote:

https://support.google.com/mail/answer/185833?hl=en-GB

Fail to see from previous suppled link and again in above link the assertion in above Users reply

Go figure

Devil is in the details



This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Auth 2.0 Error 400 on Mail account

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.