Glossary Item Box

Squirrelcart v6.1.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. On the left side of the page under APIs & Services, click Credentials
  6. Click OAuth consent screen at the top of the page
  7. Set Email address to the address you wish users to use if they need to contact you
  8. Enter your domain name or company name in the Product name field
  9. Enter your Homepage URL
  10. Click Save
  11. In the center of the screen, cilck Create credentials > OAuth client ID
  12. Under OAuth, click CREATE NEW CLIENT ID
  13. Set Application Type to Web application
  14. Set Authorized Javascript origins equal to your homepage URL. If you have an SSL certificate, use "https://" instead of "http://".
  15. 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://".
  16. Click Save
  17. Your client ID and client secret will appear. Copy them to a text file.
  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-2017 Lighthouse Development. All Rights Reserved.