Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: Biology Forums on August 24, 2018, 11:58:40 AM

Title: Social Login without a Middle Man
Post by: Biology Forums on August 24, 2018, 11:58:40 AM
How many webmasters have created their own social login without using a middle man like Gigya or Oneall?

For example, I want to incorporate Google, Facebook, and Twitter -- that's all.

Is it hard to do?

Documentations for each are readily available, but how to incorporate?

https://developers.google.com/+/web/signin/
https://developers.google.com/identity/sign-in/web/sign-in
Title: Re: Social Login without a Middle Man
Post by: Biology Forums on August 24, 2018, 12:05:02 PM
I think I'm in luck: https://www.phpclasses.org/package/9810-PHP-Authenticate-users-using-Facebook-Twitter-Google.html ... Just got to sort through this.
Title: Re: Social Login without a Middle Man
Post by: Mick. on August 24, 2018, 12:06:35 PM
before oneall mod, i think vbgamer made a twitter and facebook login mod.....or someone else did. search the mod site, I used to use it in the past but i dont remember who made it.
Title: Re: Social Login without a Middle Man
Post by: vbgamer45 on August 24, 2018, 03:08:28 PM
You can do it. Just more to maintain.
I would suggest checking out
https://hybridauth.github.io/
Title: Re: Social Login without a Middle Man
Post by: Biology Forums on August 24, 2018, 04:16:23 PM
Quote from: vbgamer45 on August 24, 2018, 03:08:28 PM
You can do it. Just more to maintain.
I would suggest checking out
https://hybridauth.github.io/

Thanks vbgamer45
Title: Re: Social Login without a Middle Man
Post by: landyvlad on September 03, 2018, 12:34:01 AM

Just some random thoughts may or may not be useful to you :)

I'm wondering why you want to limit it in that way?

The advantage of third party solutions (like oneall social login, for example, but as you mention there are others) is that they can largely manage API's and so on, and you select what networks people can use to log in with.

For a study forum, students (especially younger people) tend to jump on various sites and they may prefer to be able to log in with Instagram, for example.  (Apparently facebook is for 'old people' now, so I'm told)

You can then adjust what networks people can use to log in, largely with the tick of a box.

I had no need for a social login for my forum, so removed it, and some do change the login template code of SMF (I believe oneall is an example) which can lead to problems.  This has been discussed in this forum before so a search should find it.

As far as data security is concerned though, I'd be more concerned (or at least just as concerned) with FB or Google themselves as they are the major data miners.. )
Title: Re: Social Login without a Middle Man
Post by: Kindred on September 03, 2018, 06:22:36 AM
The disadvantage to third party solutions is that you are then dependent upon them to update their script when either the first or the second party changes.
Title: Re: Social Login without a Middle Man
Post by: landyvlad on September 04, 2018, 01:38:20 AM
Indeed.
Title: Re: Social Login without a Middle Man
Post by: Biology Forums on September 05, 2018, 05:57:09 PM
Another limitations is the cost, the oneall freemium plan allows for 2500 registrations per year. I surpass that in 1 month. The cost isn't reasonable either, some plans go for over 200 dollars per month!
Title: Re: Social Login without a Middle Man
Post by: njtweb on September 06, 2018, 07:24:18 AM
Quote from: Study Force on August 24, 2018, 04:16:23 PM
Quote from: vbgamer45 on August 24, 2018, 03:08:28 PM
You can do it. Just more to maintain.
I would suggest checking out
https://hybridauth.github.io/

Thanks vbgamer45

Are you making a mod for this?
Title: Re: Social Login without a Middle Man
Post by: Dzonny on September 06, 2018, 08:07:42 AM
I wasn't aware that OneAll has that 2500 reg/year limit.
Anyway, this should work for FB:
https://custom.simplemachines.org/mods/index.php?mod=2322
And this for twitter:
https://custom.simplemachines.org/mods/index.php?mod=3055
Title: Re: Social Login without a Middle Man
Post by: Kindred on September 06, 2018, 10:09:57 AM
no. The SA Facebook integration was never updated to use the current facebook APIs - it's been broken for full integration for over a year.
Title: Re: Social Login without a Middle Man
Post by: Paracelsus on September 11, 2018, 04:33:54 PM
SMFPacks Social Login works flawlessly: https://www.smfpacks.com/sociallogin/ Don't know though if there is some "middle man" there or not. ;D
Title: Re: Social Login without a Middle Man
Post by: njtweb on September 12, 2018, 09:20:39 AM
So, I bought this. I went to generate my FB app and got a message FB is no longer generating user apps. I went to Twitter to create my twitter app and I had to submit an application for review which they still haven't responded.
Title: Re: Social Login without a Middle Man
Post by: Biology Forums on September 12, 2018, 10:21:16 AM
Quote from: njtweb on September 12, 2018, 09:20:39 AM
So, I bought this. I went to generate my FB app and got a message FB is no longer generating user apps. I went to Twitter to create my twitter app and I had to submit an application for review which they still haven't responded.

FB should be instant. Twitter now has the review stage added. Give it 24 hours.

In time, I will buy this mod, I'm waiting for SMF 2.1.
Title: Re: Social Login without a Middle Man
Post by: SychO on September 12, 2018, 10:30:51 AM
last time I checked, It became harder with Facebook, they asked me to make an explanation video of why I need certain permissions in the app
they don't easily allow user apps
Title: Re: Social Login without a Middle Man
Post by: njtweb on September 12, 2018, 11:07:40 AM
It doesn't work with either FB or Twitter. Both apps are configured. I get a domain isn't declared error, (domain is declared) for FB and an "Error receiving security token" with Twitter.
Title: Re: Social Login without a Middle Man
Post by: njtweb on September 13, 2018, 10:15:03 AM
BTW... The SMFPacks social login doesn't work, it's a waste of money. Don't waste your time, it's no different than the free mod here, they don't provide any support either.
Title: Re: Social Login without a Middle Man
Post by: Nibogo on September 13, 2018, 11:02:15 PM
Quote from: njtweb on September 13, 2018, 10:15:03 AM
BTW... The SMFPacks social login doesn't work, it's a waste of money. Don't waste your time, it's no different than the free mod here, they don't provide any support either.

So you reported today that you weren't able to create the app property, I checked and the development interface from Facebook changed, so I told you I was going to update the guide and because of that you are claiming it's not working? The mod is working, you can't blame me for a Facebook update, plenty of SMF sites are using it perfectly fine.

Quote from: Paracelsus on September 11, 2018, 04:33:54 PM
SMFPacks Social Login works flawlessly: https://www.smfpacks.com/sociallogin/ Don't know though if there is some "middle man" there or not. ;D

Thanks for the feedback, and there isn't any man in the middle, everything goes from your site to the social site :)
Title: Re: Social Login without a Middle Man
Post by: Biology Forums on September 14, 2018, 12:54:11 AM
Quote from: SychO on September 12, 2018, 10:30:51 AM
last time I checked, It became harder with Facebook, they asked me to make an explanation video of why I need certain permissions in the app
they don't easily allow user apps

I think that's Instagram, because FB is still doable without. We've essentially lost our freedom, everything requires extra work these days. I also find every developer site extremely complicated to use and configure, no matter how friendly the interface becomes.

@Nibogo, that's the problem when you have no middle man, it's hard to maintain. I will purchase once 2.1 is official.
Title: Re: Social Login without a Middle Man
Post by: njtweb on September 14, 2018, 07:35:19 AM
Quote from: Nibogo on September 13, 2018, 11:02:15 PM
Quote from: njtweb on September 13, 2018, 10:15:03 AM
BTW... The SMFPacks social login doesn't work, it's a waste of money. Don't waste your time, it's no different than the free mod here, they don't provide any support either.

So you reported today that you weren't able to create the app property, I checked and the development interface from Facebook changed, so I told you I was going to update the guide and because of that you are claiming it's not working? The mod is working, you can't blame me for a Facebook update, plenty of SMF sites are using it perfectly fine.

Quote from: Paracelsus on September 11, 2018, 04:33:54 PM
SMFPacks Social Login works flawlessly: https://www.smfpacks.com/sociallogin/ Don't know though if there is some "middle man" there or not. ;D

Thanks for the feedback, and there isn't any man in the middle, everything goes from your site to the social site :)

1st - I reported the installation installed two FB and 2 twitter buttons. Your response, "you installed it twice, remove one install". To which I responded, no I didn't install it twice, there is only one install in the package manager. Your response, nothing.

2nd - In my helpdesk ticket I reported that the FB interface wasn't working and provided you the error, I then reported Twitter wasn't working and provided you the error. Your response, you moved my ticket into the general forum and mentioned there is an issue, that was it. My ticket was closed out and you left my concerns with your forum customers for them to answer.

It doesn't work "Flawlessly" it obviously has several issues, you charge $30 for a mod that is no different than the free mod here. I bought your mod solely because I figured if I paid I'd get a "flawless" product with support should I need it. I got neither, it's a complete waste of money.
Title: Re: Social Login without a Middle Man
Post by: Kindred on September 14, 2018, 10:00:19 AM
njtweb - there may only be one showing in the packman...   but, if you see two buttons, then it is likely that you double-installed and have to manually remove one of the duplicate code changes
Title: Re: Social Login without a Middle Man
Post by: njtweb on September 14, 2018, 10:12:58 AM
Quote from: Kindred on September 14, 2018, 10:00:19 AM
njtweb - there may only be one showing in the packman...   but, if you see two buttons, then it is likely that you double-installed and have to manually remove one of the duplicate code changes

I understand that, however I clicked install 1 time. Either way, doesn't matter. I'm not bothering with it and have already written it off as a $30 waste. And his support is useless.
Title: Re: Social Login without a Middle Man
Post by: Nibogo on September 14, 2018, 12:28:45 PM
The ticket was moved to the bugs report board because Facebook changing their app setup is a general problem (it's not only affecting you, just like the Twitter one which is in the same board as it was reported at the beggining of the week), I'm sorry you feel so bad about it, hopefully when the guide is updated you can give it a try, this should be done over this weekend, you'll be notifed via email and then we can tackle the problem with two buttons which indeed happens when the edits are done twice as Kindred said. I can't use this as a support board, so feel free to contact me if you have any further problem after the upgraded instructions.

Quote from: Study Force on September 14, 2018, 12:54:11 AM
I think that's Instagram, because FB is still doable without. We've essentially lost our freedom, everything requires extra work these days. I also find every developer site extremely complicated to use and configure, no matter how friendly the interface becomes.

@Nibogo, that's the problem when you have no middle man, it's hard to maintain. I will purchase once 2.1 is official.

You're right there! I have to do releases every now and then for changes in the providers APIs or their setup, but it's worth it since plenty of users prefer to not have a man in the middle for this kind of process.
Title: Re: Social Login without a Middle Man
Post by: Biology Forums on November 22, 2019, 01:44:10 PM
I'm officially starting a "social login" plugin on my own. I figure I might as well learn the code; better now than never.

@Nibogo: Do you plan on having Instagram? I think I may just buy yours and port it to 1.x, since that's what I'm currently using.
Title: Re: Social Login without a Middle Man
Post by: Biology Forums on November 23, 2019, 10:42:18 PM
Well... I finally did it. Took me 8 hours of work to get Facebook to login and register.

If you feel like Beta testing it, here's the register link: https://biology-forums.com/index.php?action=register

Next up is Google, then Instagram, then Twitter.
Title: Re: Social Login without a Middle Man
Post by: Biology Forums on November 28, 2019, 12:49:58 AM
Google... done!
Windows... done!

Much easier than I thought it would be.
Title: Re: Social Login without a Middle Man
Post by: Mick. on November 28, 2019, 10:23:22 AM
Quote from: Biology Forums on November 28, 2019, 12:49:58 AM
Google... done!
Windows... done!

Much easier than I thought it would be.
Very cool man! I registered using Google without a hitch.
Title: Re: Social Login without a Middle Man
Post by: Biology Forums on November 28, 2019, 10:33:36 AM
Thanks bro

I feel like I should package this up and make a free mod out of it. Honestly, once you create the functions and produce the code, adding new social networks becomes the easy part.
Title: Re: Social Login without a Middle Man
Post by: Mick. on November 28, 2019, 10:38:49 AM
Quote from: Biology Forums on November 28, 2019, 10:33:36 AM
Thanks bro

I feel like I should package this up and make a free mod out of it. Honestly, once you create the functions and produce the code, adding new social networks becomes the easy part.
Just know that packaging it, you'd become the middle man. Everytime they update their API, you'd have to update the mod. Pretty much monthly lol
Title: Re: Social Login without a Middle Man
Post by: Wellwisher on November 29, 2019, 07:42:32 PM
Quote from: Mick. on November 28, 2019, 10:38:49 AM
Quote from: Biology Forums on November 28, 2019, 10:33:36 AM
Thanks bro

I feel like I should package this up and make a free mod out of it. Honestly, once you create the functions and produce the code, adding new social networks becomes the easy part.
Just know that packaging it, you'd become the middle man. Everytime they update their API, you'd have to update the mod. Pretty much monthly lol

Nice work. 8 hrs doe.  8) I have an attention span of a gold fish so kodos to your lvl of focus. Congrats on the achievement. I've spoke with a few third party social login sellers. Most of whom, aren't bothered to keep their API up to date and the support is lack luster. So I haven't touched them with a 10ft pole. However, if you're using your own mod, i might just use your mod and happily donate for a good cause (if you decide to publish it ofc).
Title: Re: Social Login without a Middle Man
Post by: Biology Forums on November 30, 2019, 12:06:42 AM
Quote from: Mick. on November 28, 2019, 10:38:49 AM
Quote from: Biology Forums on November 28, 2019, 10:33:36 AM
Thanks bro

I feel like I should package this up and make a free mod out of it. Honestly, once you create the functions and produce the code, adding new social networks becomes the easy part.
Just know that packaging it, you'd become the middle man. Everytime they update their API, you'd have to update the mod. Pretty much monthly lol

Didn't think of it that way, but you're definitely right.

Quote from: Wellwisher on November 29, 2019, 07:42:32 PM
Nice work. 8 hrs doe.  8) I have an attention span of a gold fish so kodos to your lvl of focus. Congrats on the achievement. I've spoke with a few third party social login sellers. Most of whom, aren't bothered to keep their API up to date and the support is lack luster. So I haven't touched them with a 10ft pole. However, if you're using your own mod, i might just use your mod and happily donate for a good cause (if you decide to publish it ofc).

Thank you! I don't mind porting this to 2.x, but it'd only be for people who don't mind getting their hands dirty editing files without a user interface. Most buyers want an easy solution, and I don't blame them if they're paying for it
Title: Re: Social Login without a Middle Man
Post by: Adrek on November 30, 2019, 02:18:14 PM
@Biology Forums did you use any tutorials on how to make it work? I tried while ago to make FB login with HybridAuth, but after few days unsuccessful tries I gave up on this idea..
Title: Re: Social Login without a Middle Man
Post by: Biology Forums on November 30, 2019, 03:57:28 PM
Quote from: phantomm on November 30, 2019, 02:18:14 PM
@Biology Forums did you use any tutorials on how to make it work? I tried while ago to make FB login with HybridAuth, but after few days unsuccessful tries I gave up on this idea..

Hybridauth does all the heavy lifting in the sense that it reads what the networks output from their APIs, and places them into variables that you can use to input into tables found on your server, namely the members table. No tutorials were available, unfortunately. If you'd like me to code it for you, shoot me an email with your best price, and the networks you want