CM Answers (CMA) - Social Login - Google+
Social Login - Google+
Please note that Google often changes its Developers Console service and the user interface may very after publishing this article. If you noticed an error in our documentation please let us know at email@example.com.
The CM Answers, CM Download Manager, and CM Registration plugins work with several social media platforms to enable a quick and easy authentication through external social media profiles, without needing to register with WordPress.
As a forum admin, you can allow your users to post questions and answers to your forum using their Google plus login credentials. This will spare them the long registration process with WordPress, without having to appear as anonymous users on CM Answers. Rather, their Google+ profile will be presented next to the questions and answers they post, as though they were registered users. This setting specifically allows Google plus users to authenticate with their Google ID from the plugin settings control panel. If this field is left empty, the Google+ icon and login option will not appear in the pop-up window at the entrance to your forum.
To register your site with Google+ and allow for Google plus login and authentication with the plugin, please take the following steps.
Go to https://console.developers.google.com/ and Create a project:
In the New Project dialog enter the project name:
In the project's Dashboard click Enable APIS AND manage APIs:
Click on the Credentials button visible on the left sidebar:
In the dialog press Create credentials button and choose OAuth client ID:
Google will ask you to Configure a consent screen. Press the button.
Enter the Product name and press the Save button:
In the next screen choose Application type: Web application.
As the Authorized redirect URIs (highlighted) put the URL address which you can find in the plugin settings under the Social Login tab.
For CMA it will be: http://your-website.com/auth/google/oauth2callback
For CMDM it will be: http://your-website.com/cmdmauth/google/oauth2callback
For CMREG it will be: http://your-website.com/cminds-registration-social-login/google/oauth2callback
Then press the Create button.
In the end you will receive the Client ID and the Client secret:
Copy the Client ID for the web application and Client secret.
Enter the Client ID and the Client secret into the plugin settings ( Settings → Social Login → Google+).
Well done! Your Google+ Login is up and running! From now on, when entering your Q&A forum for the first time, users will see the Google+ login option, represented by the Google+ icon.