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:
$this->widget('LoginWidget');
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
*GIT HUB * 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)
Total 11 comments
Hi, when i click google or facebook directly it showing my website without asking any username and password. tell me how to come out from this error.
Hi, when i click google or facebook link directly it showing my website without asking username and password.
yiiauth working on localhost, but i upload it to live server it gives session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/emashaal/public_html/postlooks/protected/modules/yiiauth/components/Yiiauth.php:2)
Please give me the solution if possible
https://github.com/Crisu83/yii-auth/blob/master/README.md#checking-access
got it... I commented the try..catch lines in function DefaultController::actionauthenticatewith() to get the exact error, I ended up in having "error in extension cURL in PHP', so I had it resolved and got it fixed
http://stackoverflow.com/questions/1347146/how-to-enable-curl-in-php
I followed strictly all the user guide and forum, I ended up in an ungly message that says:
Something wrong with X provider :(
Hey,
I'm sorry to say, but I don't get the extension to run:( I tried a lot of steps, but finally I returned to the message:
"Something wrong with google"
Or any other Provider I try...
Your "Setup" Guide is sadly not very helpful and I have a big issue with your "UserClass" Assignment...
Cheers Phil
Drinni, thanks for sharing this extension, Im gonna give it a try to my application, i will report any comments on this
Updated the download link to the new version, please read the forum thread for instructions,new info,easier to understand and to use. New methods for updating user status,access facebook or twitter api or store/load user sessions (database).
default/profile.php sourcecode contains alot of info.
:) sweet, I'm working now on making it.. more usefull and easier to understand.. so All feedback welcome..
I had downloaded hybridauth Drini and was figuring out how to intergrate it in yii but thanks for your effort in creating this module. I will try it and give you any feedback. Thanks.
Leave a comment
Please login to leave your comment.