Social Login: Google App Setup
This document provides instructions on setting up a Google application so users can login/register via Google on your site using our Social Login extension.
Enabling API & App Registration #
To allow users to log in to your site with their Google account, you need to create a Google Cloud project and configure the OAuth. Follow steps below to create a configure your Google Cloud project.
1. Sing in to continue to Google Cloud Platform #
Go to https://console.cloud.google.com/ and sing in to enter the Google Cloud console.
2. Create a project #
Click the project button in the top menu and you'll see the Select a project pop-up. Click the NEW PROJECT button create a project.
Enter the Project name and click the CREATE button.
3. Start to configure the OAuth consent screen #
Once a project is created, go to APIs & Services. Select Credentials from the left-side menu then click the CONFIGURE CONSENT SCREEN button.
Choose the External in the User Type options, then click the CREATE button.
4. Edit app registration #
4.1 OAuth consent screen #
Enter the App name, User support email, upload App logo.
Enter your website domain.
Enter your contact Email addresses.
Continue to the next step by clicking the SAVE AND CONTINUE button.
4.2 Scopes #
You'll be on the step Scopes. Click the ADD OR REMOVE SCOPES button to select the scopes.
Select three required API Scopes:
Once selected click on the UPDATE button.
The selected scopes will now appear on the Your non-sensitive scopes section.
Continue to the next step by clicking on the SAVE AND CONTINUE button.
4.3 Test users #
You'll be on the step Test users. On this step you can add Test users to test the social login, or just continue to the next step by clicking the SAVE AND CONTINUE button.
4.4 Summary #
You'll be on the step Summary that shows you the outline of your app registration. Click the BACK TO DASHBOARD button.
5 Create credentials #
Select Credentials from the left-side menu. Click the CREATE CREDENTIALS button and select the OAuth client ID item.
Once clicked, it'll take you to the Create OAuth client ID page.
Select the Web application option in the Application type. Enter a name of your OAuth 2.0 client in the Name field.
Enter allowed redirect URLs in the Authorized redirect URIs section. Enter your website Login page URL, Registration page URL, Account page Social tab URL. Add the custom page URL if you use the social login shortcode on the custom page. Each URL must contain the
Note: By default, URLs have the "/" symbol at the end of the path. Remove "/" before "?" if your site uses URLs without "/" at the end of the path.
Click the CREATE button.
6 Enter your keys #
Once you click the button, the OAuth client created pop-up will appear and you'll see your application keys.
Copy your Client ID and Client Secret keys and paste them to the Client ID and Client secret fields under the Google Social Connect on the wp-admin > Ultimate Member > Settings > Extensions > Social Login page on your website.
Turn on the Social Account Tab, Show social connect on registration forms and Show social connect on login forms settings to show the social buttons on your website. Click the Save Changes button.
Test the Social Login feature at the Login and Registration pages. If you're encountering issues, please read this article: Social Login Common Issues. Contact the support if your application and extension configured by this instruction but does not work properly.