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

Apr 28, 2023 6:19 AM in response to The Animaster

Do you need to delete the old account first? I had the gmail account connected and working, but something happened with google console and my account was locked out. Finally got it cleared and can use gmail through their web interface but can't connect through mail. When I tried to do so using the instructions it gave me an account already exists message. So my assumption is that I need to delete the account from mail and then re-add it. Sound correct? TIA

Jun 6, 2023 10:22 AM in response to ays177

Thank you for the post but ...


Wait for it-- drumroll.............


Of course we all saw this coming--


In Google Security there isn't an 'Apps' tab to select-


There is a "Recent Security" section listing your device activities with dates


"How to Sign in to Google" with a list of things like-


2-Step Verification

Password

Google Prompt

2-Step Verification Phones

Recovery Phone

Recovery Email


"Your Devices"


"Third Party Apps with account access"


"Enhanced Safe Browsing For Your Account"


"Signing In to Other Sites"


"Looking For Something Else?"


So which is it?

Jun 18, 2023 1:28 PM in response to ays177

I spoke too soon about it working for me. About 10 minutes after I reconnected after deleting the old gmail account and adding it back through the 'other' option, I got this warning from my mac as a pop up message (i'm assuming after checking for mail via push notifications):


MAIL CANNOT ACCESS YOUR MAILBOX INFORMATION BECAUSE IT'S ALREADY IN USE


Another application on your computer or your local network is using your mailbox information. Click QUIT to quit mail. Then log out of this compute rand any other computer you're using. After you log in again, open Mail on one computer only.


If this message reappears, there may be a network server problem. Contact your system administratro to determine if it can be resolved by rebuilding your mailbox information. Then click Rebuild Mailbox Information.


******

Since my computer is so old there are thousands upon thousands of emails with attachments....rebuilding would take days at the least.

Anyone else get this and how did they handle it?

I'm using the same gmail account on my iphone and also another Mac but I assumed the generated Gmail password would only apply to and affect THIS computer running High Sierra.


Any thoughts? Does this mean I can only have my email running on one computer a time now?

Jul 4, 2023 10:16 AM in response to ays177

I have tried the steps given by The Animaster and all I get is "unable to verify account name or password"


Background: I changed my google Password as I had an unsolicited verification code sent to my phone

Then my email wouldn't work. I got the same message as others have mentioned:

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.

I have deleted the original Gmail account from my MacBookPro (thank fully it is still all there on my iPhone)

I have tried with and without 2 factor identification on my Google account.

I'm just getting the "unable to verify account name or password" error

I am on High Sierra.

I have 2 other Gmail accounts that still seem to be working OK.

I can access the main Gmail account fine via browser, so I have the correct password.


HELP??!?!? Please

Jul 4, 2023 10:34 AM in response to kjbkjb

Sorry this isn’t working for you. High Sierra seems to have specific issues of its own. Mine was tested on El Capitan. Sadly, I decided to install High Sierra on my MacBook Pro (I’m that much of a sadist) — knowing full well it would cause my Mac to brick, because the dedicated graphics card was burnt to a crisp (common for the 15” 2011 MacBook Pro) and it was on its last legs with the integrated graphics. In the end I weighed my options — do I continue to work at 1/20th the speed on my old Mac or do I get a new Mac mini and work at the speeds of today… suffice to say it was time to say goodbye to my 12 year old MacBook.


I know this doesn’t help per se, but weigh your options. Because just checking email on my old MacBook Pro became an unbearable task… that was the straw that broke this camel’s back.

Aug 1, 2023 2:15 PM in response to sssllc

sssllc, where do you go to give IMAP authorization/permission? In my web Gmail, under settings > Forwarding and POP/IMAP, I have IMAP access enabled. Is that what you're referring to?


I tried all the solutions above and they're not working for me, I am a dinosaur running Yosemite 10.10.5 on an iMac 27" Mid 2011. I changed my password and now can't connect my email.

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.