Welcome and thanks for downloading the Google Apps Plugin for WordPress. The instructions on this page presume you have installed one of the Free, Premium, or Enterprise versions of the Google Apps Login plugin and are now attempting to configure the plugin from the ‘Google Apps Login’ page under ‘Settings’ in your WordPress admin area.
We will guide you through registering your site with Google Developers Console (which you will need to do unless the plugin has already been able to pull the settings through from the free version of the plugin while, upgrading to Premium/Enterprise). Please note that your version of the Google Developers Console may vary slightly.
Configuration
Within WordPress, start from the page Settings -> Google Apps Login – which is where you probably followed the link to this instructions page.
The G Suite (Google Apps) domain admin needs to go to https://console.developers.google.com/ (link will open in a new window). If you are not the domain admin, you may still be able to use the console, just use your regular Gmail account to access the console if you are not using G Suite (Google Apps)
In the Google Developers’ Console, click on ‘Select a Project’ dropdown box at the top (this dropdown may show the name of an existing project instead). For more clarification please see the screenshot given below.
When you click on the drop-down menu you will get a pop-up screen where you can find an option to create a new project on the top right corner. Click on the New Project. For more clarification please see the screenshot given below.
When you click on the new project link, you will be redirected to the new page where you can write your project name and select the organization hierarchy. Please write the project name and click on create. For more clarification please see the screenshot given below.
Once you click one create button google console start process to create a project for you please wait until the google console completes the creating project for you. After the completion of the process, you will be notified that the project is created. Please see the screenshot given below.
Click on the project creation notification or select from the Project drop-down menu, you will be redirected to the dashboard screen of the selected project.
Now click on the menu icon from the top left corner and mouse hover on APIs & Services then click on the OAuth consent screen menu item. When you click on the menu item the screen looks like the screenshot given below.
Please select the appropriate option as per your requirement and then click on the create button.
You will get a form where you need to write Application Name and mention all your domains underneath the title authorized domains, this is to notify that on which domains you are going to use this application. For more clarification please see the screenshot given below.
After saving this form, please click on the credentials menu to find the option called Create Credentials on the top. Click on it and select the option OAuth Client ID. For more clarification please see the screenshot.
Once you select the OAuth client ID, you will be redirected to the page where you can select the application type. This is to select the platform you are going to use this OAuth 2.0 protocol. Please select the web application option. Once you select this option you will get a form where you can write the OAuth application name and you must have to define the Authorized JavaScript origins and Authorized redirect URLs then click on create button.
Note: Please write your OAuth Origin and OAuth Redirect URL like
OAuth Origin URL : {Your site URL}
OAuth Redirect URL : {Your site URL}/wp-login.php
For more clarification please see the screenshot given below (written below URLs is just an example of our own site).
Once creating the OAuth application process done you will be notified with the popup where you can find your Client ID and your Client Secret Key. For more clarification please see the screenshot given below.
You must copy and paste these values of the Client ID and Client Secret key into the boxes back on the WordPress plugin settings screen – i.e. back in your WordPress admin, under Settings -> Google Apps Login. For more clarification please see the screenshot given below.
If you plan to use our Google Drive Embedder extension plugin, then you will also need to enable the ‘Drive API’ and ‘Calendar API’. To enable these, in the Google Developers Console, go back to APIs & Services and click Library from the left-hand menu bar.
Search for each of Drive API and Calendar API and click into them so you can click the ‘Enable’ button.
If you are using the Enterprise version of Google Apps Login, you will also need to enable Admin SDK.
All done! Save the settings in your WordPress admin, then try logging out. You should now see a ‘Sign in with Google’ button on your WordPress login page.
For certain extensions (Google Apps Directory, or the Enterprise version of Google Apps Login) you may also need to follow the instructions to set up a service account. If in doubt, please ignore for now.
Next Steps
If you have purchased the Premium or Enterprise version of the plugin, please move on to the Premium Setup instructions to understand how to make use of the premium/enterprise features that automatically restrict access to users on your own G Suite (Google Apps) domain, including auto-creation of users.
You can also learn about the (free/premium/enterprise) plugin’s Advanced Options and Multisite capabilities.