<?php

// $Id$
/**
 * @file
 * 
 * Dummy OAuth Provider and Consumer module used with SimpleTest.
 *
 * The provider simply responds positively to all authentication requests. In
 * addition to a Provider Endpoint (a URL used for Drupal to communicate with
 * the provider using the OAuth Authentication protocol) the module provides
 * URLs used by the various discovery mechanisms.
 */

/**
 * Implements hook_menu().
 */
function oauth_provider_menu() {
  $items = array();

  $items['oauth_test/request_token'] = array(
  
  );

  $items['oauth_test/authorize'] = array(
  
  );

  $items['oauth_test/access_token'] = array(
  
  );

  return $items;
}

class OAuthStub extends OAuthAdapter {
  
  public static function construct($module, $signature_method = NULL, $auth_type = NULL) {
    OAuthAdapter::construct($module, $signature_method, $auth_type);
  }
  
  function setCaller($uid) {
    
  }
  
  function fetch($url, $extra = NULL, $http_method = NULL, $http_headers = array()) {
    
  }
  
  function getAccessToken($access_url, $auth_session_handle = NULL) {
    
  }
  
  function getRequestToken($request_url, $callback = NULL) {
    
  }
}
