Similar to the Facebook Integration and Twitter Integration options, you can use Google integration to allow users to register or log in with their Google account. This can help reduce the friction of creating an account or remembering login details, leading to increased engagement.
Logging in via Google will be enabled when Google project details are set in the Options > Google Integration section. In this help page, we'll walk through creating and configuring the Google project for use with XenForo.
Creating the Google Project
The email address associated with this account may be displayed when users register using their Google account.
Browse to https://cloud.google.com/console/project and log in with your Google account.
Click the Create Project button and enter a name and ID. These will only be used internally.
Once the project is created, click the hamburger menu icon located at the top left, then select API MANAGER, then Credentials in the sidebar, and finally OAuth Consent Screen and complete the details as necessary and save the settings.
Click CREATE CREDENTIALS, select OAuth Client ID, then WEB APPLICATIONand complete the details as follows:
Ensure all variations of the URL used to access your site are entered.
In both the AUTHORIZED JAVASCRIPT ORIGINS and AUTHORIZED REDIRECT URIS fields, enter your board URL. Note that if users access your site both with and without the "www" (http://www.example.com and http://example.com), you should enter both URLs. Similarly, if users can access your site both with and without HTTPS, you should enter a value with http and https. Each URL should be placed on its own line.
Double check all of the URLs are correct and then click the Create Client IDbutton. The Create Client ID overlay will be displayed so just click the Cancelbutton.
On the Credentials page, make a note of the CLIENT ID and CLIENT SECRET. Copy these values into the respective fields in the Options > Google Integration section of the XenForo control panel.
Finally, test your integration. You can do this via XenForo by going to your account, choosing the External Accounts option and attempting to associate your Google account.
To change the values displayed when a user attempts to register via Google, you can customize this in your Google project via APIs & auth > Consent screen.