Glossary Item Box

Squirrelcart v5.5.0

Google Login Strategy

Overview

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.

Enabling Google Login

  1. If you have not already done so, enable our SEO URL feature.
  2. Go here: https://code.google.com/apis/console/
  3. Login to Google if you are not already logged in.
  4. Click create project, enter a name for your project, and save 
  5. Click APIs & auth > Credentials
  6. Under OAuth, click CREATE NEW CLIENT ID
  7. Set Application Type to Web application
  8. Set Authorized Javascript origins equal to your homepage URL. If you have an SSL certificate, use "https://" instead of "http://".
  9. 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://".
  10. Click CREATE CLIENT ID
  11. Copy the value of CLIENT ID to a text file
  12. Copy the value of CLIENT SECRET to a text file
  13. Click APIs & auth > Consent screen
  14. Set EMAIL ADDRESS to the address you wish users to use if they need to contact you
  15. Enter a value for PRODUCT NAME. We recommend using your domain name.
  16. Enter a value for HOMEPAGE URL
  17. Click Save
  18. Open your Squirrelcart control panel
  19. Click Users > Account Settings > Google
  20. Enter your Client ID and Client secret in the corresponding fields
  21. Check the Enabled field
  22. Click Save Changes

 

 

 

 


© 2001-2016 Lighthouse Development. All Rights Reserved.