Setup Google as an Identity Provider
Integrating Google as an Identity Provider (IdP) allows users to log in to your application using their Google accounts. This simplifies the authentication process and enhances security by leveraging Google's robust authentication mechanisms.
Please follow the steps below to add Google authentication to your application.
Create a Google API Project
  1. Go to the Google Cloud Console.
  2. Click on the project drop-down and select or create the project you want to use for your application.
  3. Click on the "Create Project" button if you are creating a new project.
  4. Enter a name for your project and click "Create".
Set Up OAuth Consent Screen
  1. In the Google Cloud Console, navigate to "APIs & Services" > "OAuth consent screen".
  2. Select "External" for the User Type and click "Create".
  3. Fill in the required fields such as App name, User support email, and Developer contact information.
  4. Click "Save and Continue" to proceed through the scopes and test users sections.
Generate your OAuth 2.0 Credentials
  1. In the Google Cloud Console, navigate to "APIs & Services" > "Credentials".
  2. Click on "Create Credentials" and select "OAuth client ID".
  3. Choose "Web application" as the application type.
  4. Enter a name for your OAuth 2.0 client ID.
  5. Under "Authorized redirect URIs", add the following URI: https://your-domain.com/auth/google/callback (replace your-domain.com with your actual domain).
  6. Click "Create" to generate your OAuth 2.0 credentials.
  7. Note down the Client ID and Client Secret that are generated.
Configure Text Club for Google Authentication
  1. Log in to your Text Club admin panel as administrator.
  2. Navigate to "Settings" > "Authentication".
  3. Enable the Google authentication option.
  4. Enter the Client ID and Client Secret you obtained from the Google Cloud Console.
  5. Save the changes.