Testing a three-legged and two-legged OAuth REST using Drupal 7.x, Services 7.x-3.2, Oauth 7.x-3.0, and PHP Client

This article is based on my drupal community documentation at http://drupal.org/node/1839550.

System
  • CentOS 6.3
  • PHP 5.3.18
  • PECL Oauth extension (install it via command pecl install oauth)
  • Drupal-7.17
  • Server URL: http://core.zeus.lan (you can use any URL BUT You SHOULD really going for HTTPS). You can read about setting up SSL certificate here
  • Client URL: http://localhost/oauth.php (this will be used below)
Modules

Continue reading