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
Requirements ¶
Developed in Yii 1.1.10 but probably it works just as great in older versions.
Usage ¶
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:
<?php $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
Resources ¶
- 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)
Perfect timing
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.
bonnie
:) sweet, I'm working now on making it.. more usefull and easier to understand..
so All feedback welcome..
UPDATED*
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.
im gonna try it
Drinni, thanks for sharing this extension, Im gonna give it a try to my application, i will report any comments on this
not working at all
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
Error Message
I followed strictly all the user guide and forum, I ended up in an ungly message that says:
Something wrong with X provider :(
Re: Error Message
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
checkAcces
https://github.com/Crisu83/yii-auth/blob/master/README.md#checking-access
if (Yii::app()->user->checkAccess('itemName')) // itemName = name of the operation { // access is allowed. }
header problem
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
username and password
Hi, when i click google or facebook link directly it showing my website without asking username and password.
username and password
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.
send post on wall (facebook)
Hey friends.
My site is working with yiiauth extension.
I want send post on wall (facebook)
In hybridauth extension.
$ha = Yii::app()->getModule('hybridauth')->getHybridAuth(); $facebook = $ha->getAdapter('facebook'); $facebook->setUserStatus('Hi');
What do I need to do this in the extension yiiauth.
help me.
does it still work?
its been a while since this was last updated, can anyone tell me if this is still a good choice?
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.