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 23, 2023 8:39 AM

SOLUTION


In google, goto "Manage your Google account"...


On the left menu, select "security"...


Scroll to "2-Step Verification" (Mine was on already)...


Scroll to the very bottom of the "2-Step verification" page and select "App passwords"...


Select app menu, select "Mail" in the "Select Device menu, select "Mac"...


Click the "Generate" button and copy the password in the yellow box...


Open the mail app...


Archive your mail for the account you are fixing (if you need to, most people wont)...


Open system preferences from the Apple Menu...


Select "Internet Accounts"...


Delete the broken Gmail account here by clicking on it and hitting the - at the bottom of the window and close that window...


Go back to the mail app...


In the "Mail" menu, select "preferences" and add a new account with the + at the bottom of the accounts list making sure to select "other mail account" as the account provider and click "continue"...


enter the name for the account, enter the gmail email address, and paste the password you copied from the yellow box as the password.


TADA!

218 replies

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



Mar 23, 2023 1:49 AM in response to ays177

Hi Guys, I managed to solve everything!

I have Macbook Pro 2011, Hig Sierra.


My steps were as follows:

1) I left the old gmail account disabled which didn't work.

2) Thanks to the system indicated above I logged into my Google account and created a new password for MAC and Mail.

3) On the Mac, in the mail app I created a new account by choosing "other" and writing my email with a dot before the @ (example: mymail.@gmail.com)

4) At this point I verified that the new account was working properly.

5) I re-enabled the old GMAIL account which no longer worked and... as if by magic it started working again!

6) At this point I deleted the new account I had created thanks to the "others" function


The old GMAIL account works fine!!


[Edited by Moderator]


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.