Skip to Content

Google Social Login

Google is a popular social connection that allows users to log in to your application using their Google profile.

To set up a Google social connection, you must:

  1. Create Google OAuth credentials with the Google Auth Platform.
  2. Configure and test a Google social connection with the FaableAuth Dashboard.

Prerequisites

Before you begin:

  1. Sign up for a Google Developer accountΒ .
  2. Create a Google ProjectΒ 

Google Auth Platform

The Google Auth Platform helps you manage your applications and OAuth credentials for logging in and calling Google APIs. To learn more, read Get started with the Google Auth PlatformΒ .

Use the Google Auth Platform to:

  1. Configure Google consent screen
  2. Create Google OAuth 2.0 Client

Detailed instructions for each step are provided in the sections below.

If your application requests sensitive OAuth scopes or uses a custom image, Google limits it to 100 logins until the OAuth consent screen is verified. Consent screen verification may take up to several days.

When you use OAuth 2.0 for authorization, your application requests authorization for one or more scopes of access from a Google Account. Google displays a consent screen to the user, including a summary of your project, its policies, and the requested access scopes.

Before creating an OAuth client ID, you must first configure the OAuth consent screen with information about your application.

In the Google Cloud Console, configure your Google OAuth consent screenΒ :

  1. Navigate to Google Auth Platform > Branding: For Authorized domains, enter faable.auth.link. If you’re using a custom domain, enter your custom domain instead.
  2. Navigate to Google Auth Platform > Audience: For User type, select Make External. In Test Users, you can add the email addresses you want to use for testing.
  3. Navigate to Google Auth Platform > Data Access to add or remove scopes. To learn more, read OAuth 2.0 Scopes for Google APIs.
  4. Follow the rest of the instructions to finish configuring your Google OAuth consent screen.
  5. Select Save Changes.

Create Google OAuth 2.0 Client

To create a Google OAuth 2.0 Client, you need your FaableAuth domain, which you can find in the FaableAuth Dashboard.

  1. Navigate to Auth β†’ Settings β†’ Custom Domains.
  2. If you haven’t configured a custom domain, your FaableAuth domain name is {YOUR_FAABLEAUTH_NAME}.auth.faable.link. Your redirect URI is https://{YOUR_FAABLEAUTH_NAME}.auth.faable.link/callback.

In the Google Cloud Console, create a new OAuth 2.0 ClientΒ :

  1. Navigate to Google Auth Platform > Clients. Then, select New Client.
  2. For the Application type, select Web application.
  3. Enter the following information for your OAuth 2.0 Client:
  • Name: The name of your OAuth 2.0 Client.
  • Authorized Javascript origins: https://{YOUR_DOMAIN}
  • Authorized redirect URIs: https://{YOUR_DOMAIN}/callback
  1. Select Create.

Create the connection in FaableAuth

Once you have the Client ID and Client Secret from Google:

  1. In the FaableAuth Dashboard, navigate to Auth β†’ Social Login and click Create.
  2. Choose Google as the connection type.
  3. Enter the Client ID and Client Secret generated by Google.
  4. Save the connection.

Last updated on

Last updated on