[MODULE] HybridAuth
#1
Posted 02 July 2012 - 06:35 AM
I've just put up the first release. Comments/thoughts etc let me know!
Thanks,
Mark
#2
Posted 02 July 2012 - 02:59 PM
Thanks
#3
Posted 03 July 2012 - 03:05 AM
slvolz, on 02 July 2012 - 02:59 PM, said:
Thanks
http://hybridauth.so.../userguide.html
#4
Posted 03 July 2012 - 03:06 AM
#5
Posted 03 July 2012 - 07:48 AM
#6
Posted 03 July 2012 - 08:08 AM
If you wasn't aware of it, I can understand that you released this, but could you please consider joining Sampa?
His extension is called YiiAuth.
#7
Posted 03 July 2012 - 06:33 PM
jacmoe, on 03 July 2012 - 08:08 AM, said:
If you wasn't aware of it, I can understand that you released this, but could you please consider joining Sampa?
His extension is called YiiAuth.
I agree we should not have multiple modules for this, but was under the impression that markvr was more-or-less taking over development from Sampa - but it would be nice if it were clear that yiiauth was being deprecated, and hybridauth was now the "official" extension for it...even better if it were a public repository (which, to me, should be standard for yii extensions to help reduce the fragmentation)...
#8
Posted 03 July 2012 - 08:40 PM
Not trying to rain on any parade, but .. I've said what I wanted to say.
Besides: Yiiauth is a cooler name.
#10
Posted 05 July 2012 - 09:32 PM
#11
Posted 12 July 2012 - 08:34 AM
jacmoe, on 03 July 2012 - 08:08 AM, said:
If you wasn't aware of it, I can understand that you released this, but could you please consider joining Sampa?
His extension is called YiiAuth.
Because, and apologies to Sampa here, YiAuth is a mess. I started out using it as a base and rapidly realised it would be better to implement hybrid-auth from scratch again by extending CBaseUserIdentity, which seemed a more correct way to do it. YiiAuth requires you to extend ALL your controllers from it's class for example...rather than extending this Yii class.
And I called it "hybrid-auth" mainly because I'm lazy and unorignal (!) but also so it's clearer what it does. The name YiiAuth isn't overly clear what it does.
I'll continue developing this, I need to add OpenID support (I've been away for a week and just got back).
#12
Posted 12 July 2012 - 12:47 PM
Harimau, on 05 July 2012 - 09:32 PM, said:
tbh using yii-user with yiiauth took me less then 5 min when I helped a user who pm:ed me.
And extending the new useridentity class is not easier then extending one controller from the yiiauth componen.t. even if its a bad solution just fix that instead? because markvr, changing what class ONE controller extends from isnt that bad... Same as rights do (one of the most popular extensions for yii). And I use rights in all my projects so I thought it wouldnt be that big of a deal.
What bothers me is you complain about extending one's main controller from a yiiauth component instead of the base CController beeing awfull, when you expect people to do the exact same thing but wtih a useridentity, something people are alot less used to do. And you somehow lost the most basic easy to use login form and have to do a special fix for that? o_O
I wish you luck but this just seems like you do this for prestige since it is not good for anything else.
(the end product quality for the yii community).
Oh well:) glhf
#13
Posted 12 July 2012 - 05:05 PM
When I looked at the code I decided it would be cleaner to reimplement it, and then thought I would release what I'd done.
I'm new to Yii (which is awesome BTW!) and I haven't studied any other extensions so maybe having all controllers extend from your classes is common, but to me it seemed to reduce the ability to "drop in" authentication methods with minimal changes the the rest of the app, which is what I wanted to do. I also don't understand how having all the controllers extend a modules class would scale to more than one module. You'd end up extending totally different unrelated classes on each other, with possible method/property name conflicts etc.
#14
Posted 14 July 2012 - 06:28 PM
#15
Posted 15 July 2012 - 05:51 AM
$adapter = Yii::app()->getModule('hybridauth')->getAdapter();Use this to post status updates etc.
See the Hybrid Auth docs for more info - http://hybridauth.so...net/apidoc.html
#16
Posted 15 July 2012 - 09:01 AM
If that works for you, then it's great.
There are several extensions which uses a common controller base - Rights is one of them (widely used) - and your approach is just as valid.
Time will tell which version is the strongest.
The ultimate 'solution' would of course be to fix YiiAuth so that it can support the two approaches.
That shouldn't be too hard, as common functionality could be extracted into a shared base.
But I digress.
The survival of an extension also depends on how well the extension is maintained..
Even though I am disappointed, I am fine with you deciding to go for your own extension.
#17
Posted 15 July 2012 - 09:13 AM
I'm glad your back and updating this.
Perhaps jacmoe and I should help you instead.
I who has made the yiiauth extension and understand it could extract the usefull parts,
example would be the ability to have more then one provider connected to the same account.
(not that takes along time:p) but with a seperate table instead of modifying the user table fits the "just add it" mentality to, since you only have to run an sql command instead of modifying your table and model.
Edit*
I just realised:
An installer function could fix alot. adding a $install property, then checking if its true then create the neccessary tables and check requierements (if user model exists etc...) to prevent errors popping up all over the place (which normally happends with more complex modules.
#18
Posted 15 July 2012 - 09:53 AM
jacmoe, on 15 July 2012 - 09:01 AM, said:
How does that work if more than one extension/module does this?
As I put above:
Quote
confused!
#19
Posted 15 July 2012 - 09:55 AM
Sampa, on 15 July 2012 - 09:13 AM, said:
Possibly, although I wonder if Yii migrations would be more suitable. I haven't looked at them much so I'm not sure yet.
#20
Posted 15 July 2012 - 04:03 PM
markvr, on 15 July 2012 - 09:53 AM, said:
Good question.
Perhaps a behavior?
Could either be controller behavior or model behavior. Or perhaps even both?
That would probably be the best way to do it.
And ensure that it will coexist with other extensions.
And to comment on another thing: +1 for migrations.

Help











