lonnieezell / myth-auth

One-stop Auth package for CodeIgniter 4
MIT License
637 stars 208 forks source link

Social login #26

Closed boblennes closed 5 years ago

boblennes commented 6 years ago

Lonnie, You may want to consider using https://github.com/socialite-manager/socialite instead of hybridauth. It's based off the Laravel component of the same name, and seems to be pretty robust. Btw, just curious, how does myth-auth compare against php-auth or others?

Core Providers twitter github google facebook bitbucket linkedin

Other Providers Instagram Line VKontakte Weixin QQ Weibo Twitch Slack Discord Dropbox Yahoo Spotify GitLab Yandex Add more...

lonnieezell commented 6 years ago

Why would you recommend this over the other? Pros and cons?

Sent from my iPhone

On Sep 8, 2018, at 9:05 AM, boblennes notifications@github.com wrote:

Lonnie, You may want to consider using https://github.com/socialite-manager/socialite instead of hybridauth. It's based off the Laravel component of the same name, and seems to be pretty robust. Btw, just curious, how does myth-auth compare against php-auth or others?

Core Providers twitter github google facebook bitbucket linkedin

Other Providers Instagram Line VKontakte Weixin QQ Weibo Twitch Slack Discord Dropbox Yahoo Spotify GitLab Yandex Add more...

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

boblennes commented 6 years ago

I can't say I've done an exhaustive comparison, in fact I only recently stumbled upon socialite. But I've used HybridAuth 2.9 in the past and had some trouble with it, despite all the people that seem to use / work on/with it. Now there is a 3.0 version, and it is documented (both seem to be documented pretty well), but of note, several issues still linger with it that do not seem to get fixed/answered in a reasonable amount of time - but in Hybridauth 3.0's defense, it does not claim to be production grade yet.

Socialite is (at least seems to be) production grade. Looking under the hood, it is leveraging guzzle instead of curl. For oauth1 it uses league/oauth1-client. Socialite is PSR-7 compliant. However, major disclaimer. I haven't tried using Socialite yet, but stay tuned, I might give it a go if time allows. Looking at the code between the two, much is similar. Hybridauth runs in php 5.x and 7. Socialite is php 7.x only.

List for Hybridauth: https://hybridauth.github.io/providers.html List for Socialite: https://socialiteproviders.github.io/about.html

Hope that helps.

Thanks, Bob

lonnieezell commented 6 years ago

Yeah, I've ran into issues with HybridAuth in the past, so I'll definitely give socialite a look.

To be fair, though, it using Guzzle and PSR-7 only means it duplicates much of the HTTP layer of already built into CI4, so isn't necessarily a direct selling point lol.