Simple Machines Community Forum

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

Title: Social Login without a Middle Man
Post by: Study Force 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: Study Force 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: Study Force on August 24, 2018, 04:16:23 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: Study Force 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
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: Study Force on September 12, 2018, 10:21:16 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
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.

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: Study Force on September 14, 2018, 12:54:11 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
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.

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

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.