Skip to main content

Google OAuth Authentication

OAuth is a standard for authorisation that allows users to authorise an app or service to sign in to another without revealing sensitive information such as usernames or passwords.

Step-by-Step Process

Step 1: Set Up Google Cloud Platform

  1. Go to Google Cloud Platform and sign in.
  2. Click Select a project → New Project.
  3. Fill in the Project Name and click Create.

Step 1 - Set Up Google Cloud

  1. Open the side menu and go to APIs & Services → OAuth Consent Screen.
  2. Choose a User Type and click Create.
  3. Fill in the App Name and User Support Email.
  4. Click Add Domain and enter inventerp.com.
  5. Add developer contact information and click Save and Continue.
  6. Add test users if using External user type.
  7. Click Back to Dashboard and then Publish App.

Step 2 - Configure OAuth Consent

Step 3: Configure Mail Server in Invent ERP

  1. Log in to Invent ERP.
  2. Go to Configuration → Settings → Technical → Mail Server → Mail Servers.
  3. Click Add, fill in the Mail Server Description.
  4. Choose Gmail OAuth Authentication under Authenticate Using.
  5. Click Copy to copy the OAuth2 Redirect URL.

Step 3 - Configure Mail Server

Step 4: Create OAuth Credentials in Google Cloud

  1. Go to APIs & Services → Credentials → Create Credentials → OAuth Client ID.
  2. Select Web Application as the application type.
  3. Enter a client name and paste the OAuth2 Redirect URL under Authorized Redirect URIs.
  4. Click Create.
  5. Copy the Client ID and Client Secret.

Step 4 - Create OAuth Credentials

Step 5: Finalize in Invent ERP

  1. Paste the Client ID and Client Secret in the Mail Server form.
  2. Enter your Gmail address as the Username.
  3. Click Create.
  4. Scroll down and click Connect Your Gmail Account.
  5. Authorize the app in Google.
  6. Verify that Token Valid is displayed.
  7. Click Test Connection to confirm the setup.

Step 5 - Finalize in Invent ERP Step 5 - Finalize in Invent ERP Step 5 - Finalize in Invent ERP