Skip to main content

Google OAuth Authentication

OAuth is a standard for authorisation in the field of technology, which allows users to authorise an app or service to sign in to another without revealing sensitive information such as usernames or passwords. The OAuth 2.0 protocol is used for authentication and authorisation with Google APIs.

Step-by-Step Process

  1. Sign in or create an account on Google Cloud Platform
  2. Click Select a Project

Step 2 - Google OAuth

  1. Press New Project

Step 3 - Google OAuth

  1. Fill in the Project Name field

Step 4 - Google OAuth

  1. When you are done, click Create

Step 5 - Google OAuth

  1. In Notifications, click Create Project: Invent ERP

Step 5 - Google OAuth

  1. Click on the Navigation menu (3 horizontal bars) in the top left corner

Step 7 - Google OAuth

  1. Click APIs & Services then OAuth consent screen

Step 8 - Google OAuth

  1. Choose a User Type, Select Either Internal or External.

Step 9 - Google OAuth

  1. After that, press Create

Step 10 - Google OAuth

  1. Fill the App Name field under App Information

Step 11 - Google OAuth

  1. Fill the User support email field under App Information

Step 12 - Google OAuth

  1. Click Add Domain

Step 13- Google OAuth

  1. Click Authorized domain 1 and enter a domain for example Invent ERP’s website

Step 14- Google OAuth

  1. Press on Email addresses

Step 15- Google OAuth

  1. After that, click on Save and Continue

Step 16- Google OAuth

  1. Press on Save and Continue again

Step 17- Google OAuth

  1. If you chose the External under User Type then you will continue to Test Users. Click Add users

Step 18 - Google OAuth

  1. Fill in the blank under Add Users

Step 19 - Google OAuth

  1. Then click Add

Step 20 - Google OAuth

  1. Click Save and continue

Step 21 - Google OAuth

  1. Select Back to dashboard

Step 22 - Google OAuth

  1. When you are all done, simply press Publish App

Step 23 - Google OAuth

Navigate to Invent ERP

  1. Using the left sidebar menu, under Configuration select Settings

Step 24 - Google OAuth

  1. Then click on Technical then choose Mail Server then Mail Servers.

Step 25 - Google OAuth

  1. Press Add in the top right corner

Step 26 - Google OAuth

  1. Fill in the Mail Server Description field

Step 27 - Google OAuth

  1. Choose Gmail OAuth Authentication in the Authenticate Using drop-down menu

Step 28 - Google OAuth

  1. Click on Copy

Step 29 - Google OAuth

  1. Navigate to (console.cloud.google.com)

Step 30 - Google OAuth

  1. Select Credentials

Step 31 - Google OAuth

  1. Then Press Create Credentials

Step 32 - Google OAuth

  1. Choose OAuth client ID

Step 33 - Google OAuth

  1. Select Application Type

Step 34 - Google OAuth

  1. In the Name field, enter Invent

Step 35 - Google OAuth

  1. Click on Add URL

Step 36 - Google OAuth

  1. Paste the URL you copied earlier from Invent ERP

Step 37 - Google OAuth

  1. Then Press Create

Step 38 - Google OAuth

  1. The next step is to click Copy Client ID

Step 39 - Google OAuth

  1. Navigate back to the Invent ERP Mail Server page as shown previously.

Step 40 - Google OAuth

  1. Paste the Client ID that you copied previously.

Step 41 - Google OAuth

  1. Navigate back to (console.cloud.google.com)

Step 42 - Google OAuth

  1. Then click Copy client secret

Step 43 - Google OAuth

  1. Now head back to the Invent ERP Mail Server page, and paste the Client Secret

Step 44 - Google OAuth

  1. Now Fill in the Username field with the email address you used on your Google Cloud

Step 45 - Google OAuth

  1. Press Create

Step 46 - Google OAuth

  1. After creating it, scroll down and press on Connect your Gmail account

Step 47 - Google OAuth

  1. The next step is to switch to (accounts.google.com) and log in to your gmail account. Ensure that it is the same email you have used to log in into Google Cloud

  2. If you get the message Google hasn’t verified this app, click on Advanced

Step 49 - Google OAuth

  1. Click Go to inventerp.com (unsafe)

Step 50 - Google OAuth

  1. Click Continue

Step 51 - Google OAuth

  1. Click Continue

Step 52 - Google OAuth

  1. It will automatically switch to Invent ERP’s website. Ensure that Token Valid is displayed on your screen. Scroll up and click Test Connection then you should see the popup message success and you are all done.

Step 53 - Google OAuth