- To configure Google for your site, point your browser to http://console.developers.google.com/ and login.
Click on Create Project. Enter the desired app name and click the Create button.
- You will be redirected to the Google Developers Console. In the side panel, go to
APIs & auth –> Consent screen, fill in the details and click on the Save button.
Next, go to APIs & auth –> Credentials and click on the Create new Client ID button.
Choose Application type as Web application and fill in the details. Make sure to specify the right callback URL: http://www.yoursite.com/path_to_cometchat_directory/functions/login/?sa_login_finish=google
Note: You need to replace <www.yoursite.com> with your site’s domain name and <path_to_cometchat_directory> with path to the directory where CometChat is installed.
- Click on the Create Client ID and copy the Client ID and Client secret.
Once you have your Client ID and Client secret, go to
CometChat Administration Panel –> Settings –> General –>Authentication Modes –> Google and click on the Configure icon besides the name.
Enter your Client ID in the Google API Key and Client secret in the Google API Secret Key fields. Finally, click on Update Settings button.
You have thus successfully configured Google. Your site users can now use their Google credentials to login to your site.