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
- Click APIs & auth > Credentials
- 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 CREATE CLIENT ID
- Copy the value of CLIENT ID to a text file
- Copy the value of CLIENT SECRET to a text file
- Click APIs & auth > Consent screen
- Set EMAIL ADDRESS to the address you wish users to use if they need to contact you
- Enter a value for PRODUCT NAME. We recommend using your domain name.
- Enter a value for HOMEPAGE URL
- Click Save
- 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-2016 Lighthouse Development. All Rights Reserved.