google

Adventures In Authentication

A Capital Region Drupal meetup (the first of its kind I believe) is scheduled for March 6th and I hope to be able to talk about authentication and identity. Just a couple of years ago the issue of authentication and identity on Drupal sites was limited to the functions of the Drupal login system. I remember that the first module I ever utilized to improve the login process was LoginToboggan. LoginToboggan adds such nifty features as logging in with name or email address, placing a login form on pages not accessible to anonymous users and much more. It's a great module and I still use it today. Since then we've also seen a few social networks like Twitter and Facebook increase greatly in popularity. So while millions of people create accounts on those services they may not necessarily want to create an account (and have to remember another password) on your Drupal powered site.

Lucky for us Drupal site builders that the big social networking players realized that in order to get even bigger they would need to reach out to other sites. They have done so via APIs such as Facebook Connect, the Twitter API and Google Friend Connect. All three of these services allow someone to login to a website with their credentials from each of these services. So this allows people to log in to your Drupal site with their identity from Facebook, Google, or Twitter. Pretty cool, eh? All you need are the modules that make the connection between your site and these services.

Modules do exist for each of the three services mentioned above. Facebook Connect, Twitter, and Google Friend Connect all allow you to authenticate users to your site. They require varying degrees of technical expertise to set up and the exact functionality varies too. The good part is that they all seem to excel at verifying the identity of an anonymous visitor to your site, at least temporarily. The bad part is that they really don't fit in with the normal Drupal account creation process. If you're just looking for someone to be able to authenticate temporarily to add a comment they work great. If you want someone to be able to quickly create a full account, with access to all of the features of your site, with Google, Facebook or Twitter credentials then the modules fall short. What seems to work best is a hybrid approach where a user first creates an account on your site and then later connects to their account on the social network. After that they can log in with one of these services (provided you add the right links) and get all the benefits of a member of your site.

Bookmark and Share Bookmark or Share Post

Integrating Google Friend Connect

Unless you've been under a rock you know that Google recently opened up their Friend Connect service to the world. Friend Connect allows site builders to add a number of social features via widgets that Google calls gadgets. There are three main widgets currently available whose features I've summarized below.

  1. Members (pictured at right below) gives people the opportunity to join your site and displays pictures of users which link to the person's Google profile. This widget also allows people to "invite" other people to the site via email and a number of social bookmarking services.
  2. Wall adds comment functionality with the ability to link to Yo
  3. Review/Rate (pictured at left below) allows people to add star ratings along with comments to the site.

Friend Connect and Drupal

Friend Connect can easily be implemented on a Drupal site. All you have to do is cut and past ethe code provided by Google in order to add the functionality. See the video embedded below for a tutorial that shows me implementing FriendConnect on a WordPress site.

I don't think that the rating or wall features will be too helpful to Drupal site builders as that functionality is readily available via modules like Fivestar and Guestbook. If you're using Drupal as more of a blog without turning on the core sign-up and profile features then the members widget could be useful in building a soft community and adding to the viral nature of the site. I'm trying it out on the front page here.

Friend Connect Tutorial

Friend Connect Images  
Review and Rate Gadget Friend Connect Members Widget
Ratings Widget Members Widget


 

Bookmark and Share Bookmark or Share Post

Using Google Tools To Extend Site Functions

Over the last couple of years I've come to rely on free tools from Google to assist with functionality on my Drupal powered websites. At first I just used Google's site search tool. Since then it seems that every couple of months Google has either released (or acquired) tools that can enhance your Drupal site.

Here is a list of the Google tools that I've used in conjunction with my various Drupal-powered websites.

Bookmark and Share Bookmark or Share Post
Syndicate content