Configuring Google
How to get Client ID and Client Secret from Google
You’ll need to get the Client ID and Client Secret from Google to configure it.
Click on the ‘Create An App’ link to go to the Google API page, or click here.
Click the + Create Project button to start creating a new project.
You will be redirected to the following page, where you can enter the Project Name, Organization, and Location. Once all required fields are filled in, click the Create button to proceed.
After a few seconds, the project will be created with your specified Project Name. Once created, click the Select Project button to continue.
You will be redirected to this page. From the left-hand menu, click APIs & Services and then select Credentials.
You will be redirected to this page. Click the + Create Credentials button.
From the dropdown menu, select OAuth Client ID.
You will be redirected to the following page. Click the Configure Consent Screen button.
Now click the Get Started button.
You will be redirected to the following page. Enter the App Information, such as the App Name and your Support Email. Once completed, click Next to proceed.
In the Audience section, you will see two options: Internal and External. Select the option that best suits your requirements.
In the Finish section, enter your Contact Email, agree to the Terms and Conditions, and then click the Create button.
You will be redirected to the following page. From the left sidebar, click Client, then click the + Create Client button.
Select Web Application as the application type. Enter a suitable name for the API, then add your domain name in both the Authorized JavaScript Origins field and the Authorized Redirect URIs field. Ensure the domain name starts with either http:// or https://. Now, click on the ‘Create’ button
Note: To find the authorized redirect URI, go to your website dashboard and navigate to: WPUF > Settings > Social Login. Under the Google App Settings section, you will see the Redirect URI.
After clicking the Create button, a pop-up will appear, similar to the screenshot shown below.
Copy the Client ID and Client Secret from the pop-up, then paste them into the appropriate fields on the settings page. Click Save Changes to apply the updates.
All steps are complete. Go to the My Account page and click the Sign in with Google button to register or log in using your Google account.
After clicking the Google icon, you will be redirected to a page prompting you to log in to your Gmail account. Log in and grant the necessary access permissions. That’s it — your Google API is now successfully configured.