How to configure Google SSO login

On Google Dashboard

To create a Google SSO login, follow these steps:

Create a project in the Google Cloud Platform:

  1. Go to the Google Cloud Console and sign in with your Google account.
  2. Click on the project dropdown and select/create the project for which you want to enable Google SSO.
  3. Enable the Google Identity Platform API.

Set up the OAuth consent screen:

  1. Go to the "APIs & Services" → "OAuth consent screen" on the left sidebar.
  2. Select your "User Type" and click "Create".
  3. Fill in the required fields, such as App name, User support email, Developer contact information, etc.
  4. Add your domain to the "Authorized domains" section if needed.
  5. Click "Save and continue" until you've completed all required steps.

Create OAuth 2.0 client credentials:

  1. Go to the "APIs & Services" → "Credentials" on the left sidebar.
  2. Click the "Create credentials" dropdown button and select "OAuth client ID".
  3. Select the "Web application" as the Application type.
  4. Fill in the required fields, such as the "Name of the client".
  5. Add your Authorized JavaScript origins (your web app's domain) and Authorized redirect URIs (where users will be redirected to after successful authentication).
  6. Click "Create" to generate the client credentials. Keep the "Client ID" and "Client Secret" as you'll need these in your frontend and backend configurations.

On Appcharge Dashboard

  1. In the publisher dashboard, -> Admin area -> authentication tab, activate Google App and add the Google App ID
  2. The Sign in with Google will be presented in the Appcharge webstore
  3. Once a player uses this auth method, a Player Authentication webhook containing the token generated by Google will be sent.