Register a Google Cloud app for OAuth2

Register a Google Cloud app to obtain the OAuth2 client ID and secret that UserLock uses to send email through Google.

Published December 31, 2026

Before you begin

You need this only if UserLock sends email through Google with Modern authentication (OAuth 2.0). It produces the Client ID and Client secret that you enter in the OAuth2 path of Configure SMTP settings Guide.

Make sure you have:

  • A Google account with the Owner or Editor role on the Google Cloud project you will use. Without one of these roles, the Google Auth Platform settings do not appear.

  • Access to the Google Cloud console.

Register the app and create the credentials

You create the OAuth2 credentials in your own Google Cloud project, then copy them into UserLock. Google maintains the console steps, so each step below links to Google's own documentation, which follows the reader's language.

  1. Create a Google Cloud project, following Create a Google Cloud project.

  2. Configure your application on the Google Auth Platform (app name, user support email, audience), following Configure OAuth consent. This one-time setup is required before you can create a client.

  3. Create an OAuth client of type Desktop app, then copy the Client ID and the Client secret, following Create access credentials.

Note

For a Desktop app client, Google does not ask for redirect URIs or JavaScript origins. Those fields belong to the Web application type, which UserLock does not use.

Use the credentials in UserLock

Enter the credentials in the UserLock console on the server, as described in the Configure SMTP with OAuth2 section of Configure SMTP settings Guide:

  1. In Server, enter smtp.gmail.com.

  2. In Authentication, select Modern authentication (OAuth 2.0).

  3. In Client ID, enter the Client ID.

  4. In Secret, enter the Client secret.

  5. Click Sign in and sign in with the account entered in From.