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.
- 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.
- In the upper left-hand corner of the screen, choose Select a project and then Create project as shown below.
- Enter a Project name and then select the Create button.
- 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.
- 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.
- Next, select Credentials in the left-hand menu, then Create credentials in the menu at the top, and select OAuth client ID.
- On the Create OAuth client ID page, configure the following options:
| Setting | Value |
|---|---|
| Application type | Web Application |
| Name | The OAuth 2.0 Client Name (only shown in the console) |
| Authorized Javascript origins | The URL of your Strivacity instance |
| Authorized redirect URIs | [The URI of your Strivacity instance]/provider/continue |
Once complete, select Create.
- Google will now generate a Client ID and Client Secret.
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.
-
Start by logging into the Admin Console using an admin account.
-
From the left-hand menu, select Identities, then Social login.
-
Select Create.
-
Select Google from the list of available social provider capabilities.
-
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.
-
The Scopes that your Strivacity application will request are already defined.
-
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.
-
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=loginto force re-authentication instead of reusing an existing session.
Updated 6 days ago
