Knowledge Base Article #321492
How do I deal with an Authentication Failure invalid_grant message from a Gmail email account?
An authentication error invalid grant from Gmail means that some recent security change on Google's side for your account is requiring you to re-authenticate your account to allow Chaos Intellect to access it again on your behalf.
Gmail has changed their requirements for what will be allowed to connect to Google's Gmail servers and the method available to Chaos Intellect now requires something from Google called an "App Password".
If you go to the accounts list and select this account and look at the properties, does it have tabs for incoming mail and outgoing mail? If not, you'll need to remove the current account and re-add it to accomplish this task. The steps below will walk you through the process.
- If you don't have Chaos Intellect 10.5.1.0 or newer, you should start with installing this update.
- Make note of the email account nickname you chose when you setup the account originally that is now giving you this invalid_grant error. You might also want to check the signature tab to see if you had created a custom signature and if so, copy that information someplace that you can copy back to the replacement account settings a few steps from now.
- Remove the existing account
- Add a new account and give it the same email account nickname that you noted above.
- Choose "Gmail App Password" for the mail provider.
- Enter your name, your organization (optional), your email account address and your Reply-to email address (usually the same email address again).
- The password field is where Google's App Password is required. Don't enter your real account password here!
- In your web browser you need to go to Google's web site to view and update your account security settings at https://myaccount.google.com/
- Make sure to select the account you wish to add to Chaos Intellect if you have more than one Google account to select between.
- At the top where Google has a search box to "Search Google Account" type: app passwords, then click the app passwords link on the result drop down list.
- Google will verify your access by making you provide your real account password.
- You should be taken to an App Password screen where you can type an App Name you'll be giving this password to. We would recommend typing: Intellect.
- Click "Create"
- You'll next see a popup with your Generated App Password. Google shows this 16 character password in four groups of four letters with a space in between to make it easy to read, but the spaces are NOT part of your password!
- You need to type these 16 characters into the Password field instead of using your real password!
- When you click Done on the Google account page, you'll see this app name listed as an App Password you previously created. You are NOT expected to remember the password, nor should you use it elsewhere. If you needed to enter your Google password in Intellect again later, you could delete the previous app password by removing the app from the list on the Google App Password page, then generate a new App Password again.
Need to see a video walk through of these steps for a Gmail account? It is available now in our Chaos University training videos here:
https://www.chaossoftware.com/university/intellect400-gmail_mail_account_setup.aspx
Keywords: gmail, oauth, less secure, third party, google, invalid grant, authentication failure,
Modified Date: 11/14/2024
WRT
Click here to return to the Tech Support search screen.