Yiiauth is created to make use of Hybridauth inside yii apps.
Hybridauth is a library that makes working with auth api's from diffrent providers alot easier. With the addon it currently has support for 29 diffrent providers:
OpenID Google Facebook Twitter Yahoo MySpace Windows Live LinkedIn Foursquare AOL
For full addon pack with more providers see: http://hybridauth.sourceforge.net/userguide.html
Developed in Yii 1.1.10 but probably it works just as great in older versions.
Instructions: Please, see the
- Forum thread For updated info / instructions,made major change to the module.
To try out on your site there is a loginwidget that can be used simply like this:
You can also just domain.com/yiiauth/ to test.
What you will se when you have authenticated is a var_dump of the data returned from the provider.
With this data u can check if there is a user in your database assigned to that provider and with that unique id. else you should create a new user on your page, saving the provider and unique id for next login.
Please report bugs, Update! Now on github, feel free to commit improvements
- yiiauth/models/User.php and yiiauth/controllers/UserController.php
- Forum thread * Try out a demo
- [Download] (http://www.4shared.com/rar/lv3Yg_xB/yiiauth-02.html)