Google Sign-In Authentication

The Google Sign-In Authentication is a useful function that allows SotaERP users to sign in to their database with their Google account.

This is particularly helpful if the organization uses Google Workspace, and wants employees within the organization to connect to SotaERP using their Google Accounts.

Warning

Databases hosted on erp.sota-solutions.com should not use Oauth login for the owner or administrator of the database as it would unlink the database from their erp.sota-solutions.com account. If Oauth is set up for that user, the database will no longer be able to be duplicated, renamed or otherwise managed from the erp.sota-solutions.com portal.

See also

Configuration

The integration of the Google sign-in function requires configuration both on Google and SotaERP.

Google API Dashboard

  1. Go to the Google API Dashboard.

  2. Make sure the right project is opened. If there isn’t a project yet, click on Create Project, fill out the project name and other details of the company, and click on Create.

    Filling out the details of a new project.

    Tip

    Choose the name of the company from the drop-down menu.

Credentials

  1. On the left side menu, click on Credentials.

    Credentials button menu.
  2. Click on Create Credentials, and select OAuth client ID.

    OAuth client id selection.
  3. Select Web Application as the Application Type. Now, configure the allowed pages on which SotaERP will be redirected.

    In order to achieve this, in the Authorized redirect URIs field, enter the database’s domain immediately followed by /auth_oauth/signin. For example: https://mydomain.erp.sota-solutions.com/auth_oauth/signin, then click on Create.

  4. Now that the OAuth client has been created, a screen will appear with the Client ID and Client Secret. Copy the Client ID for later, as it will be necessary for the configuration in SotaERP, which will be covered in the following steps.

Google Authentication on SotaERP

Retrieve the Client ID

Once the previous steps are complete, two keys are generated on the Google API Dashboard: Client ID and Client Secret. Copy the Client ID.

Google OAuth Client ID generated.

SotaERP activation

  1. Go to SotaERP General Settings ‣ Integrations and activate OAuth Authentication.

    Note

    SotaERP may prompt the user to log-in again after this step.

  2. Go back to General Settings ‣ Integrations ‣ OAuth Authentication, activate the selection and Save. Next, return to General Settings ‣ Integrations ‣ Google Authentication and activate the selection. Then fill out the Client ID with the key from the Google API Dashboard, and Save.

    Filling out the client id in SotaERP settings.

    Note

    Google OAuth2 configuration can also be accessed by clicking on OAuth Providers under the OAuth Authentication heading in Integrations.

Log in to SotaERP with Google

To link the Google account to the SotaERP profile, click on Log in with Google when first logging into SotaERP.

Reset password screen with "Log in with Google" button.

Existing users must reset their password to access the Reset Password page, while new users can directly click on Log in with Google, instead of choosing a new password.