-
-
Notifications
You must be signed in to change notification settings - Fork 211
Maybe it's time to change hybridauth to the new version? #3492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Yes! @net1313 Are you okay to test all the e107 social logins for FB, Twitter etc.. and report back here? |
Yes! with great pleasure. |
@net1313 Excellent! 👍 I'll commit the new hybridauth version to git so you can test it. |
@net1313 v3 appears to be VERY different to v2 of HybridAuth. It could require a major rewrite of how e107 utilizes it (which I have no time to do). So, this is not a simple upgrade unfortunately. If you wish to try it yourself and send a pull-request once it is working, it would be very welcome! I don't want to risk breaking everyone's social logins by simply committing it at this moment. The best I could do for now is to upgrade to the latest v2, since it is primarily a simple overwrite of the files/folders. |
Sorry, i didn't mention this before. I've already tested new hybridauth. i'm not totally sure (it was one month ago) but it seems that only one thing to change is one function in /handlers/e107_class.php (and then to add more options in social plugin) |
Okay, that's good news. Would you be okay to make a fork of e107 and upgrade hybridAuth on your fork to the latest version? Then others here could also test it out. And once everything is confirmed working, a pull-request could be made. |
just give me one week. I'll test it locally. |
Here is what I tested during the last week. Version 2.12.0 I have not finished testing yet. Version 2.11.0 succeffully checked. It works. It has a lot of new providers. I've tested with Facebook, Twitter, Github, Google, Yandex, Vkontake ... The "additional providers" folder goes with version 2.11 of Hybridauth. So the 2.11.0 is OK and could be integrated in without changing e107_class and other files of the system except only one file in Social plugin. In e107_plugins/social/admin_config file in:
This way may be added a new provider. In order to prevent inexperienced users from modifying Social plugin files manually it would be better to implement in Social plugin admin_config.php a new function which checks all available providers.
Then the user can select only those that he needs. But there is another small issue. e107_core/shortcodes/batch/signup_shortcodes
There are no glyph icons of new providers in "old" Font Awesome versions. And instead of "fa fa-" we must write fab. Even if the version matches, and in case when you want to display buttons, not glyphs, then |
Thank you @net1313 ! I agree for the configurations. Like you said - I believe we should add all configurations and then display the ones that are detected in the file system. |
@net1313 should we work on v3.0 for e107? FONTAWESOME should have most, if not all of the providers on that list, and the one's missing we could get and add to the xup images folder. I can work on the social plugin, and add the additional providers. |
Fontawesome has been updated in core as well, so that's not an issue. Integrating a newer version of hybridauth will be the challenge. |
I Checked Fontawesome site, searched for Blizzard, and Steem (came up with nothing) - yes the real challenge would be that. Sadly their documentation to migrate from 2 to 3 hasn't been started yet: https://hybridauth.github.io/developer-ref-migrating.html |
@LaocheXe thanks for invitation. I can't promise to begin immediately. So after this summer it will be probably possibly. |
Google+ is dead, but if you want to keep social plugin update and allow users login/register through Google account (eg. gmail) just replace a file Google.php in Providers directory of Hybridauth by this file |
@CaMer0n Thanks. I'll try during this month |
@net1313 Cheers! 👍 |
3.0 instead of outdated?
More features and more providers. Fewer connectivity issues and more modern approach to authentication through social media.
The text was updated successfully, but these errors were encountered: