By: sumitk
8 Jul 2008OAuth is an open protocol to allow simple API authentication in a simple and standard method from Web and Desktop applications. ![]()
In today's web, people do not like to share or exchange all their stuff on one service. Today, we prefer to use Flickr for photos, YouTube for videos, Amazon for shopping, etc. In order to make integration of different web services (in order to satisfy all customer/user needs), APIs using Services API in a secure fashion are used. To provide a secure way of this type of communication, OAuth is a very good option.
OAuth uses token based authentication system for users and APIs. The token provided by OAuth system will provide a much safer and risk free browsing experience to users.Also, these tokens are time bound an amount of access time to another service and then it expires automatically (could be a two hour access time).The OAuth approach might be considered better than the OpenID approach as users don't have to do anything to undertstand it. They just browse normally with their existing methods but in a secure manner.
Services is a standardized api for Drupal that allows you to create "services", or a collection of methods, intended for consumption by remote applications. It works similar to the existing XMLRPC capabilities of Drupal, but provides additional functionality like:
Right now security model of Services API in Drupal supports -
After integration of OAuth to services API it will also support OAuth authentication method for security.
Right now we are working with Andy Smith's OAuth php library to implement OAuth to Drupal and Services API.OAuth is coming to Drupal with OAuth module, this module provides functionalities like

Right now Services API in Drupal supports just server side implementation as it just acts as Server. But by release of Drupal 7 we will be taking care of Client side Implementation of OAuth as well because Services API in D-7 is gonna implement both Server side and Client side.