#Single Sign-on Implementation
##Description
A basic implementation of a modern sign-in mechanism, supports logging in with:
- Google Account via OpenID
- Yahoo! Account via OpenID
- Facebook via OAuth
- Twitter via OAuth
- Internal, old-school login/password combination
For more details please visit http://doppnet.com
##Requiremnets
- PHP >= 5.2
- MySQL Database with InnoDB engine
#Installation
-
Place code in path served by your webserver
-
Enter valid configuration for the database access and the OAuth integration. Config files are located in the application/config directory.
-
Execute the following SQL to create required tables:
CREATE TABLE
users(idint(10) unsigned NOT NULL auto_increment,namevarchar(200) default NULL,emailvarchar(200) default NULL, PRIMARY KEY (id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8CREATE TABLE
associations(idint(10) unsigned NOT NULL auto_increment,user_idint(10) unsigned NOT NULL,openidvarchar(255) default NULL,facebookvarchar(255) default NULL,twittervarchar(255) default NULL,emailvarchar(255) default NULL,passwordvarchar(32) default NULL, PRIMARY KEY (id), UNIQUE KEYopenidassociations-unique-openidUSING BTREE (openid), KEYopenidassociations-users-useridUSING BTREE (user_id), CONSTRAINTopenidassociations_ibfk_1FOREIGN KEY (user_id) REFERENCESusers(id) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8
##License This code is released under MIT License.
However the following items included in this repository are licensed differently:
- File
/resources/images/background.jpgis a photography copyrighted by Sebastian Bober http://sebastianbober.com. See http://www.flickr.com/photos/sebastianbober/5261257281/ for license details - KOHANA framework released under BSD License
- jQuery released under MIT/GPL2 licenses
- LightOpenID release under MIT license
- Facebook PHP SDK release under Apache Licence