? .oauth.inc.swp
? .oauth.module.swp
? fix_direct_token_request.2.patch
? fix_direct_token_request.patch
Index: oauth.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/oauth/Attic/oauth.inc,v
retrieving revision 1.1.2.5
diff -u -r1.1.2.5 oauth.inc
--- oauth.inc	7 Nov 2008 03:56:43 -0000	1.1.2.5
+++ oauth.inc	7 Nov 2008 08:42:57 -0000
@@ -490,6 +490,17 @@
   drupal_goto($form_state['values']['oauth_callback']);
 }
 
+
+
+/**
+ * Tunnels a request to _oauth_token_request mapping GET parameters to function
+ * arguments
+ *
+ */
+function _oauth_direct_token_request() {
+  return _oauth_token_request($_GET['timestamp'], $_GET['nonce'], $_GET['consumer_key'], $_GET['consumer_secret']);
+}
+
 /**
  * Generate a request token from the request
  *
Index: oauth.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/oauth/oauth.module,v
retrieving revision 1.11.2.5
diff -u -r1.11.2.5 oauth.module
--- oauth.module	10 Oct 2008 00:41:50 -0000	1.11.2.5
+++ oauth.module	7 Nov 2008 08:42:57 -0000
@@ -28,7 +28,7 @@
   $items['webservice/token_request'] = array(
     'access callback'   => TRUE,
     'file'              => 'oauth.inc',
-    'page callback'     => '_oauth_token_request',
+    'page callback'     => '_oauth_direct_token_request',
     'type'              => MENU_CALLBACK,
   );
   $items['webservice/token_access'] = array(
