Skip to content

Latest commit

 

History

History
executable file
·
134 lines (95 loc) · 5.33 KB

social-auth.md

File metadata and controls

executable file
·
134 lines (95 loc) · 5.33 KB
title date categories tags permalink
How to login using Social Auth (Facebook, Google, Twitter ...)
2016-01-08 07:10:15 -0800
settings
settings
/social-auth/

On Open eShop it's really easy to login using your social network account like Twitter, Facebook, Google + , LinkedIn etc., we use a 3rd party open source project called HybridAuth (awesome project!).

To activate any of these social logins you need first to purchase a premium theme from our market.

How to enable Google login

  1. Open in a new window the Google Developers Console
  2. Click Create project

google1


3\. Choose name and press **Create**
4\. Then go to: **Api** > **Credentials** > **Create New Client ID**

google2


5\. Choose an application type: **Web Application**

6. Click Create Client ID

google3


7\. Go on **APIs and auth** -> **APIs** and enable Contacts API and Google+ API

google4

8. Go to http://yourdomain.com/oc-panel/social/index
9. Set Google = TRUE
10. Fill ID = Client ID as appears at Google page
11. Fill Secret = Client secret as in Google
12. Click Update in the bottom of the page
13. Logout
14. Go to login, Google should appear there
15. Test!


How to enable Facebook login

This social login might change depending on Facebook !

1. Create a facebook app [Here is a guide with instructions on how to do that]({{ site.baseurl }}/add-facebook-comments)

2. Go to facebook developers section

3. Go to Settings > Basic, fill fields Display Name and Contact Email

4. Press Save Changes

fb1

5. Go to Settings > Advanced, fill field Deauthorize Callback URL with your website's URL (for example http://example.com/) and field Valid OAuth redirect URIs with your website's URL too (press enter after you type the URL). Make sure Social Discovery, Allow API Access to App Settings, Client OAuth Login and Web OAuth Login are ON.

fb1 fb1

6. Click Save Changes
7. Go to Status & Review
8. Answer "Do you want to make this app and all its live features available to the general public?" with YES

fb1

9. Go to http://yourdomain.com/oc-panel/social/index
10. Set Facebook = TRUE
11. Fill ID = App ID as appears at FB page
12. Fill Secret = App secret as in FB
13. Click Update in the bottom of the page
14. Logout
15. Go to login, Facebook should appear there
16. Test!

How to enable AOL login

  1. Go to http://yourdomain.com/oc-panel/social/index
  2. Set AOL = TRUE
  3. Click Update in the bottom of the page
  4. Logout
  5. Go to login, AOL should appear there
  6. Test!

How to enable Open ID (yahoo) login

With this option users will be able to login using an Open ID account. In Open Classifieds we use Yahoo as Open ID provider since it's really easy to implement.

  1. Go to http://yourdomain.com/oc-panel/social/index
  2. Set Open ID = TRUE
  3. Click Update in the bottom of the page
  4. Logout
  5. Go to login, Open ID should appear there
  6. Test!

How to enable Yahoo login

  1. Go to https://developer.apps.yahoo.com/dashboard/createKey.html and create a new application.
  2. Fill out any required fields such as the Application Name and Description.
  3. Put your website domain in the Home Page URL and Callback Domain fields.
  4. Set Application Type to Web Application.
  5. Choose Contacts API

yahoo contacts

6. Go to your panel, Settings -> Plugins, enable Social Auth, click Save and then go to Settings -> Social Auth or http://yourdomain.com/oc-panel/social/index
7. Set Yahoo = TRUE
8. Fill ID = Client ID as appears at Yahoo
9. Fill Secret = Client secret as in Yahoo
10. Click Update in the bottom of the page
11. Logout
12. Go to login, Yahoo should appear there
13. Test!

Other social login

From documentation Hybrid Auth, follow similar procedure.

  1. Twitter
  2. Yahoo (deep integration, but check better Open ID)
  3. MySpace
  4. Windows Live
  5. LinkedIn
  6. Foursquare