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
- Go to Google Cloud Platform and sign in.
- Click Select a project → New Project.
- Fill in the Project Name and click Create.

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

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

Step 4: Create OAuth Credentials in Google Cloud
- Go to APIs & Services → Credentials → Create Credentials → OAuth Client ID.
- Select Web Application as the application type.
- Enter a client name and paste the OAuth2 Redirect URL under Authorized Redirect URIs.
- Click Create.
- Copy the Client ID and Client Secret.

Step 5: Finalize in Invent ERP
- Paste the Client ID and Client Secret in the Mail Server form.
- Enter your Gmail address as the Username.
- Click Create.
- Scroll down and click Connect Your Gmail Account.
- Authorize the app in Google.
- Verify that Token Valid is displayed.
- Click Test Connection to confirm the setup.
