HybridAuth, Open Source Social-Sign-On Solution
A PHP Library for authentication through Facebook, Twitter, Google, Yahoo, MySpace, LinkedIn, FourSquare, OpenID and many other Identity providers
Let's assume you have the following environment setup :
- Apache running at port 80
- PHP 5.2 installed with all the required dependencies (also we need cURL and SimpleXML for some providers)
- Server is accessed as www.mywebsite.com
- Document-root is accessed as /www/mywebsite.com
To install HybridAuth, you can use the Installer or do it manually :
1. Using HybridAuth Installer:
- Download the lastest stable release from sf.net
- Uncompress then put HybridAuth Library into your website Document-root.
The complete path should be something like:
/www/mywebsite.com/hybridauth/
- Go to http://www.mywebsite.com/install/index.php and follow the required steps described by the installer.
- Don't forget to delete the ("install") folder and all the files inside of it after you complete the installation
2. Manual Installation :
- Download the lastest stable release from sf.net
- Uncompress then put HybridAuth Library into your website Document-root.
The complete path should be something like:
/www/mywebsite.com/hybridauth/
- There is one and only one file usually accessed from outside, so set it to +rx mode (read and execute permissions):
- index.php => http://www.mywebsite.com/hybridauth/index.php
- Make sure that HybridAuth temporary folder /www/mywebsite.com/temp/ is RECURSIVELY WRITABLE.
- Change $GLOBAL_HYBRID_AUTH_URL_BASE in hybridauth/hybridauth.php configuration file with the complete url to hybridauth library on your website.The complete URL should be something like: http://www.mywebsite.com/hybridauth/
- Set your applications keys on hybridauth/hybridauth.php file.
Visit Supported identity providers section to know how to setup external Social Network Application Credentials.
- Visit http://www.mywebsite.com/hybridauth/examples/ to try some working demos.
- Don't forget to delete the ("install") folder and all the files inside of it after you complete the installation
Please note: HybridAuth will not work properly in localhost, because the majority of social networks and identities providers 'IDps' DO NOT TRUST http://localhost/ requests,