Google login setup

Strivacity supports social authentication using external identity providers such as Google. This allows customers to log in to your application using their existing Google identity.

Step 1: Configuring Google sign-in in the Google API console

To set up Google sign-in for use as a social login provider, follow these steps.

  1. Go to the Google API console and log in using your Google account. If this is the first time that you're visiting this site, you will be asked to agree to the Terms of Service.
  2. In the upper left-hand corner of the screen, choose Select a project and then Create project as shown below.
Click to Enlarge
  1. Enter a Project name and then select the Create button.
Click to Enlarge
  1. Select OAuth consent screen in the left-hand menu. Then select either Internal or External to define your target user scope. Once selected, choose Create.
Click to Enlarge
  1. Next, you'll see further configuration options for the OAuth consent screen. You'll need to enter the following information:
  • Application name
  • Fully qualified domain name (FQDN) of your domain
  • URL to the home page of your application
  • URL to your Privacy Policy
  • URL to your Terms of Service

Once complete, select Save.

Click To Enlarge
  1. Next, select Credentials in the left-hand menu, then Create credentials in the menu at the top, and select OAuth client ID.
Click To Enlarge
  1. On the Create OAuth client ID page, configure the following options:
SettingValue
Application typeWeb Application
NameThe OAuth 2.0 Client Name (only shown in the console)
Authorized Javascript originsThe URL of your Strivacity instance
Authorized redirect URIs[The URI of your Strivacity instance]/provider/continue

Once complete, select Create.

Click To Enlarge
  1. Google will now generate a Client ID and Client Secret.
Click To Enlarge

Step 2: Configuring Google Sign-in within Strivacity

Following these steps will finalize your setup for using Google Sign-In as a social login provider with your application in Strivacity.

  1. Start by logging into the Admin Console using an admin account.

  2. From the left-hand menu, select Identities, then Social login.

  3. Select Create.

  4. Select Google from the list of available social provider capabilities.

  5. Fill in the Configuration for Google as a social login provider. Copy the Client ID and Client Secret from the Google configuration, and paste the respective values into the Client ID and Client Secret fields here.

  6. The Scopes that your Strivacity application will request are already defined.

  7. Enable Synchronize and store profile data at each login to ensure customer data is kept up-to-date inside your application. If you choose to synchronize and store this social profile data at each login, Strivacity will retrieve and store this information, which will be visible to the customer on their My Account page and to any Strivacity admins when managing the customer's identity.

  8. You can also define Additional parameters that are included in the authorization request sent to Google. These parameters allow you to control provider-specific authentication behavior. For example, some providers support parameters such as prompt=login to force re-authentication instead of reusing an existing session.