This page explains how to enable the Google login strategy for Squirrelcart's social sign-in feature. If you have not already done so, please read the main Social Sign-In topic before reading this one. You will need to register an application with Google as part of the setup process.
- If you have not already done so, enable our SEO URL feature.
- Go here: https://code.google.com/apis/console/
- Login to Google if you are not already logged in.
- Click create project, enter a name for your project, and save
- On the left side of the page under APIs & Services, click Credentials
- Click OAuth consent screen at the top of the page
- Set Email address to the address you wish users to use if they need to contact you
- Enter your domain name or company name in the Product name field
- Enter your Homepage URL
- Click Save
- In the center of the screen, cilck Create credentials > OAuth client ID
- Under OAuth, click CREATE NEW CLIENT ID
- Set Application Type to Web application
- Set Authorized Javascript origins equal to your homepage URL. If you have an SSL certificate, use "https://" instead of "http://".
- If you have the No Filename field checked on the Store Settings page in the control panel, enter a path like this for the Authorized redirect URI field:
https://www.example.com/auth/google/oauth2callback
If the No Filename field is not checked on the Store Settings page in your control panel, enter a value like this instead:
https://www.example.com/store.php/auth/google/oauth2callback
You'll need to change the URL to include your domain name. If you do not have an SSL certificate, you can use "http://" instead of "https://".
- Click Save
- Your client ID and client secret will appear. Copy them to a text file.
- Open your Squirrelcart control panel
- Click Users > Account Settings > Google
- Enter your Client ID and Client secret in the corresponding fields
- Check the Enabled field
- Click
© 2001-2017 Lighthouse Development. All Rights Reserved.