Yii Framework Forum: [MODULE] Yiiauth - Yii Framework Forum

Jump to content

  • (3 Pages)
  • +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

[MODULE] Yiiauth a module wrapper for hybridauth Rate Topic: ***** 3 Votes

#41 User is offline   Sampa 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 173
  • Joined: 18-December 11
  • Location:Stockholm,Sweden

Posted 03 July 2012 - 03:10 AM

View Postramdani, on 01 July 2012 - 11:31 AM, said:

same as you..
I can't try it.
anybody help us

"*edit* Ignore, it's a fresh install and I haven't setup the User class yet."

You must have a user database table,and a user model class. Else it's impossible to know if the user have logged in before:p
0

#42 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 03 July 2012 - 08:12 AM

View Postmarkvr, on 02 July 2012 - 06:46 AM, said:

I've put my first stab at a module to cleanly implement HybridAuth up at http://www.yiiframew...ion/hybridauth/

I'm away for almost 2 weeks now so haven't had time to test it properly (I hate it when people say that as well, sorry), but it's probably enough to be getting on with for now.


My opinion on this is that you shouldn't have done that.

I don't think Sampa would mind that you joined the Yiiauth team and contributed to it.
Personally, I'd rather see one great and well maintained auth module than a whole host of spin-offs.

Of course, Sampa (and I, when I get the time to join Yiiauth) can merge your changes back into Yiiauth, but I think this module needs more cooks in the kitchen. :)
"Less noise - more signal"
1

#43 User is offline   Sampa 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 173
  • Joined: 18-December 11
  • Location:Stockholm,Sweden

Posted 03 July 2012 - 03:51 PM

View Postjacmoe, on 03 July 2012 - 08:12 AM, said:

My opinion on this is that you shouldn't have done that.

I don't think Sampa would mind that you joined the Yiiauth team and contributed to it.
Personally, I'd rather see one great and well maintained auth module than a whole host of spin-offs.

Of course, Sampa (and I, when I get the time to join Yiiauth) can merge your changes back into Yiiauth, but I think this module needs more cooks in the kitchen. :)

Yeah, if the goal is to get the best possible module we should all work together. Unless it's prestige that counts.

I have a shitload of stuff currently and currently I cannot realise the ideas I have.

One thing I think would be great is a basic complete user handling, i left my controller/model there as reference but I think beside optimising the performance/ease the installation that would be the next step in features.

Imho it would be great if one could just add yiiauth to the skeleton app and get it working. and from there modify to your personal needs. After that I would love to see a guide for integrating it with Yum and yii-user since those two modules are widely used..
2

#44 User is offline   M Wotton 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 49
  • Joined: 01-November 09

Posted 08 July 2012 - 10:43 PM

OK, this fragmentation/duplication of effort is counter-productive. I personally don't like the implementation as a module, so was hoping to see a simple extension or component wrapping HybridAuth from markvr. Even using a custom controller to manage the routes, with HybridAuth as an extension would be better.

For now, I am using Yiiauth since I want a single user to be able to use multiple providers as Yiiauth allows, but markvr's implementation does not.

Thanks for your efforts, both of you, but can we get some consolidation?
Micha Wotton
Posted Image
0

#45 User is offline   Sampa 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 173
  • Joined: 18-December 11
  • Location:Stockholm,Sweden

Posted 09 July 2012 - 11:32 AM

View PostM Wotton, on 08 July 2012 - 10:43 PM, said:

OK, this fragmentation/duplication of effort is counter-productive. I personally don't like the implementation as a module, so was hoping to see a simple extension or component wrapping HybridAuth from markvr. Even using a custom controller to manage the routes, with HybridAuth as an extension would be better.

For now, I am using Yiiauth since I want a single user to be able to use multiple providers as Yiiauth allows, but markvr's implementation does not.

Thanks for your efforts, both of you, but can we get some consolidation?


I wouldnt mind that, Jacmoe has offered to help when he has time. I needed hybridauth for one of my projects and did the best I could :P Yiiauth is on github and the more improvements the better.

But I dont know have the skills or time to do it myself currently.
0

#46 User is offline   Dark-Sun 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 7
  • Joined: 04-April 12
  • Location:Ahwaz

Posted 23 July 2012 - 03:01 AM

View Postramdani, on 01 July 2012 - 11:31 AM, said:

same as you..
I can't try it.
anybody help us


check your PHP version, it should be 5.3+ (preferably 5.3.2+)
1

#47 User is offline   dowerasu 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 13
  • Joined: 15-August 12

Posted 16 August 2012 - 12:45 AM

Great module for openID authentication. I wondered if there is possible to make this module work with GoogleAPIs. I tried implementing googleapis extention, but got messed up on redirectUris. Maybe you know another great way to implement GoogleAPIs?
0

#48 User is offline   dudunegrinhu 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 33
  • Joined: 05-August 10

Posted 25 August 2012 - 03:14 PM

I didn't understand this step:

You have to extend application.components.controller to Yiiauth

<?php class Controller extends Yiiauth{...?>

Where should I extend? What file?
0

#49 User is offline   dudunegrinhu 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 33
  • Joined: 05-August 10

Posted 25 August 2012 - 03:15 PM

I didn't understand this step:

You have to extend application.components.controller to Yiiauth

<?php class Controller extends Yiiauth{...?>

Where should I extend? What file?
0

#50 User is offline   Vaibhav 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 55
  • Joined: 23-August 12
  • Location:Berlin

Posted 04 September 2012 - 08:18 PM

Guys where do I Put this code... should it be in main controller whos view uses the loginwidget.

You have to extend application.components.controller to Yiiauth
<?php class Controller extends Yiiauth{...?>


I am getting this error and i guess it is because of this

Quote

Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /home/idiots/public_html/idiotsonwheels/protected/modules/yiiauth/components/Yiiauth.php on line 31

0

#51 User is offline   caller 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 24-September 12

Posted 24 September 2012 - 08:36 AM

Hi

I am New to Yii Framework. i am not able to maintain session, after redirection from facebook, twitter. when, i already logged in with my form feilds. please help me. i am using Yiiauth(downloaded from github).
0

#52 User is offline   Rathan 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 12-March 12

Posted 05 January 2013 - 09:39 AM

Hi All,

I have a problem here with the extension.

I am able to login using the Facebook and also am able to fetch the details from the facebook and store it to my DB .But i am not able to login using the other providers or get data from other providers. After adding other provider I cannot get data from facebook even. Desperatley need help on this.

I am using the my own code to store user data.

Also i want to know what is the difference between Yiiauth and Hybridauth extensions.
Are they the same , can i club these if needed.
0

#53 User is offline   PrplHaz4 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 107
  • Joined: 28-September 09
  • Location:Boston, MA

Posted 05 January 2013 - 10:05 AM

View PostRathan, on 05 January 2013 - 09:39 AM, said:

Also i want to know what is the difference between Yiiauth and Hybridauth extensions.
Are they the same , can i club these if needed.


they are very similar, both implementing the hybridauth PHP library (http://hybridauth.sourceforge.net/)....hybridauth extension is more recent and combines yiiauth with some community requested features/implementation details
0

#54 User is offline   Devendra411 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 151
  • Joined: 09-April 13
  • Location:Bangalore

Posted 16 April 2013 - 12:49 AM

Hi, I am getting this error. Pls help me, how to come out this error.

require_once(/hybridauth/Hybrid/Auth.php): failed to open stream: No such file or directory .
0

#55 User is offline   Devendra411 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 151
  • Joined: 09-April 13
  • Location:Bangalore

Posted 17 April 2013 - 03:55 AM

Hi, I solved my error. Thank u.

Now i'm getting another error,
When i click Facebook, Google and Twitter without asking any username and password it showing my website.

pls give me solution for this.
0

#56 User is offline   javad 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 20
  • Joined: 15-March 12

Posted 03 July 2013 - 08:10 AM

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.
0

#57 User is offline   LosRobinos 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 24-August 12

Posted 26 December 2013 - 04:28 AM

Found small typo in Yiiauth (59) $identity=new userIdentity($user->username, "");

should be with first letter UCase.
0

#58 User is offline   spyfx 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 29
  • Joined: 14-March 13

Posted 26 December 2013 - 11:52 AM

Did Facebook change their API or something? Im getting everytime an error like:

Authentification failed! facebook returned an invalide user id. 


any guesses?
0

#59 User is offline   Chris Backhouse 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 34
  • Joined: 04-August 11
  • Location:France

Posted 02 May 2014 - 01:40 AM

I wanted to capture more information from the Provider to store on my User table so I changed YiiAuth.php to call a method in my User model instead. In workOnUser

if ( !Yii::app()->user->isGuest ){
$social->yiiuser = Yii::app()->user->id;
$user = $userClass::model()->findByPk(Yii::app()->user->id);
// refresh the details, particularly as this is a new feature
$user->updateYiiAuth($user_profile, $provider);
}else{
// we want to create a new $userClass - CB moved this to base User model
$user = new $userclass;
$user->connectYiiAuth($user_profile, $provider);
$social->yiiuser = $user->id;
}
0

#60 User is offline   Chris Backhouse 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 34
  • Joined: 04-August 11
  • Location:France

Posted 02 May 2014 - 01:40 AM

I wanted to capture more information from the Provider to store on my User table so I changed YiiAuth.php to call a method in my User model instead. In workOnUser

    if ( !Yii::app()->user->isGuest ){
          $social->yiiuser = Yii::app()->user->id;	
	  $user = $userClass::model()->findByPk(Yii::app()->user->id);
	  // refresh the details, particularly as this is a new feature
	  $user->updateYiiAuth($user_profile, $provider);
    }else{
	  // we want to create a new $userClass - CB moved this to base User model
	  $user = new $userclass;
	  $user->connectYiiAuth($user_profile, $provider);	
	  $social->yiiuser = $user->id;
    }

0

Share this topic:


  • (3 Pages)
  • +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users