Yii 1.1: yiiauth

Module to allow users to login via facebook,twitter openid and 26 others
60 followers

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

*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 13 comments

#17963 report it
Neovash at 2014/08/19 01:08am
does it still work?

its been a while since this was last updated, can anyone tell me if this is still a good choice?

#13871 report it
javad at 2013/07/03 09:12am
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.

#12871 report it
Deva at 2013/04/17 06:22am
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.

#12870 report it
Deva at 2013/04/17 06:12am
username and password

Hi, when i click google or facebook link directly it showing my website without asking username and password.

#12783 report it
sefburhan at 2013/04/12 12:48am
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

#11685 report it
DrMabuse at 2013/01/27 08:15am
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.
}
#11186 report it
basem at 2012/12/24 07:45am
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

#11185 report it
basem at 2012/12/24 07:21am
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 :(

#9911 report it
PinkBrainPlan at 2012/09/21 04:56am
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

#9634 report it
aleksdj at 2012/08/30 08:26pm
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

#8578 report it
Sampa at 2012/06/12 12:33pm
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.

#8571 report it
Sampa at 2012/06/12 08:01am
bonnie

:) sweet, I'm working now on making it.. more usefull and easier to understand.. so All feedback welcome..

#8554 report it
bonnie at 2012/06/11 06:39pm
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.

Leave a comment

Please to leave your comment.

Create extension
Downloads
No downloadable files yet