Netgen Connect - sign in by social networks made easy

Tuesday 22 March 2011 9:18:31 am

By : Edi Modrić

Social networks are what web is about today. If you don’t have at least one social network account, you practically don’t exist on the Internet. Some would argue about these statements (including myself, mainly concerning Facebook), but at the end of the day, the truth is that social networks matter, to users as well as websites.

One feature that is lacking in eZ Publish, and it seems like every other web out there has it, is the ability to create an account and sign in by using your favorite social networks. Well, not anymore. I’m proud to present to you an extension called Netgen Connect, which provides an easy way for your users to sign in to your site with just a few clicks.

Netgen Connect currently supports sign in to eZ Publish sites via three social networks used worldwide: Facebook, Twitter and Tumblr. Once extension is installed and properly configured, users are presented with a link for each of the social networks, which, upon clicking, lead them to social network of their choice and back again after authentication/authorization.

Extension also has its fair share of options, configurable through ini file, of course. For example, there is an option to configure how social network sign in pages will be displayed to your users, through pop ups or in the same browser tab as your site is opened in. For Facebook, you can define what permissions will be asked of your users by your Facebook app, so once they’re signed in, you can use those permissions to build an even better experience for your users. It is also possible to instruct the extension how to fetch user images (avatar sizes or the original ones) as well as define a separate parent node for each social network, in which your newly registered users will be placed. And if that’s not enough, extension also supports connecting the social network accounts of your users to their already existing eZ Publish accounts, thus providing them both ways to sign in.

Extension development started when, naturally, one of our clients requested such functionality to be added to their new website. Specifically, they needed a system to allow Facebook users to start using their site with as little hassle as possible. We, at Netgen, discussed the requirement for couple of days and decided not to create a “Netgen Facebook” extension, but rather an universal and extensible system that would support each and every social network/website that uses standardised ways to provide sign in capabilities. Basically, all it takes to support a social network not already present, is to create an additional PHP class and plug it in via ini settings. Documentation on how to do that is provided with the extension.

Extension is published under a GPLv2 license and can be downloaded from http://projects.ez.no/ngconnect. The sources for the extension are hosted on GitHub for those who wish to support additional social networks and have that support included in the extension in future releases.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.