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

Feb 22, 2023 7:10 AM in response to ays177

I understand you want to add a Google account to the Mail app. To do that follow these instructions from the Mail User Guide: Add email accounts in Mail on Mac - Apple Support. Select your macOS version from the dropdown menu at the top of that page. To find out the macOS version your Mac is using please read Find out which macOS your Mac is using - Apple Support.


If you continue to get the error then contact Google for assistance: Contact a third-party vendor - Apple Support.

Feb 22, 2023 7:17 AM in response to ays177

To add to previous posting


Link below outlines some changes in Google regarding using Non Native Android Apps to access Google e-mail Services


The Application Specific Password factor was introduced not only in Google e-mail but also similar in Apple


Sign in to apps with your Apple ID using app-specific passwords - Apple Support


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


Jun 4, 2023 11:06 PM in response to ays177

  • Generate app specific password on google
  • System Preferences -> Internet Accounts -> Add CalDAV account
  • Set account type to Advanced
  • Set user name to google account (yourusername@gmail.com)
  • Set password to app specific password previously generated
  • Set server address to: https://calendar.google.com
  • Set server path to: /calendar/dav/yourusername@gmail.com/user/
  • Set port to: 443
  • Put a checkmark in: Use SSL
  • Leave "Use Kerberos" unchecked


Sign in

Mar 12, 2023 10:24 AM in response to igor-dB

I’m sorry I can’t help much there as I only use my iCloud account with Apple Notes and Calendar — and this is exactly the reason for that.


Your best bet would be to use a Google-compatible alternative to Apple Notes and Calendar, on your system. I can understand how this is NOT ideal — but at the same time, Google has been firm with their decision to no longer support this on older systems.


Looking at Google’s REASON for doing so is palpable: the older systems/apps just don’t meet their security requirements. Now, a new app may be designed to work on older systems, and may be designed with updated security protocols — and such an app would be what you are looking for.

Mar 22, 2023 11:44 AM in response to ays177

This all happened to me when I was trying to find the solution on why my gmail was not syncing with my iPhone and Mac Mail. Solutions offered in the apple community forum suggested deleting gmail from both Mac mail apps on phone and computer and then re-installing them. When I did that and tried to reinstall my gmail account in my Mac mail, I got this error, and I am so irritated. While the solution from user "The Animaster" below worked somewhat, I have lost the ability to have my gmail calendar on my ical now, and it still doesn't sync. My gmail is my work email address so obviously this is a major inconvenience especially with the calendar.


Is anyone from apple monitoring this problem? Can any apple representative reading this particular forum chain make any sort of suggestion? My iOS is not old, and my laptop isn't a spring chicken but its not old either - I am operating on iOS High Sierra 10.13.6, on a 2017 MacBook.


Honestly, for what we pay for these machines and all the software, we shouldn't be crippled so easily to function if anything is over 3 years old. Updating the iOS is not a convenient solution as I know it will slow down my computer and some of my paid software will not work properly. And I am unfortunately not a Rockefellar where I can just dish out $2k every 3 to 4 years for new computers.

Mar 23, 2023 7:25 AM in response to igor-dB

Noticed that my most recent post was removed. Deleted what I presume was the problem and will try again.

++++++

The facts are that if you are using Apple hardware and software any older than the last few editions they flatly don’t care if you have problems or not. The equipment may be built like a tank and last forever, but only if YOU can keep it running. They will not help, as you will find if you ever contact their customer support with issues with older hardware. They will give you the brush-off as quickly as they can.


Fortunately for those of us running old stuff, there are those users with advanced skills who are dedicated to getting it to work (though you won’t find many of them here). With their help my MacPro 1,1 (2006) is still able to run El Capitan, and while Safari has occasional problems on it, Firefox and Chrome work fine and MacMail still works with Gmail, thanks to Google’s app password methods outlined by The Animaster above. Good luck.

Apr 23, 2023 9:50 AM in response to ays177

Error 400 in the context of OAuth 2.0 typically indicates a "Bad Request" error. This error message is usually returned when there is an issue with the request sent by the client.

In the context of a Mail account, this error may occur if there is an issue with the authentication process. It's possible that the authentication token has expired, or there is an issue with the client's credentials. It could also be an issue with the API endpoint or the authorization server.

To troubleshoot this issue, you may want to check the following:

  1. Check that the authentication token is still valid. If the token has expired, you will need to obtain a new token.
  2. Ensure that the client credentials are correct. If the client credentials are incorrect, you will need to obtain the correct credentials.
  3. Verify that the API endpoint is correct. If the endpoint is incorrect, you will need to update it drain mansion apk.
  4. Check the logs or error messages for more information on the specific issue that caused the error.

If none of these solutions work, you may want to contact the Mail provider's support team for further assistance.

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.