Revision: 1781
Author: andreassolberg
Date: Thu Sep 24 04:10:59 2009
Log: Bugfix for retrieving key and secret from command line arguments.  
OAuth demo
http://code.google.com/p/simplesamlphp/source/detail?r=1781

Modified:
  /trunk/modules/oauth/bin/demo.php

=======================================
--- /trunk/modules/oauth/bin/demo.php   Fri Aug 21 00:45:36 2009
+++ /trunk/modules/oauth/bin/demo.php   Thu Sep 24 04:10:59 2009
@@ -17,8 +17,8 @@
  require_once(dirname(dirname(__FILE__)) . '/libextinc/OAuth.php');

  $baseurl = (isset($_SERVER['argv'][1]) ?  
$_SERVER['argv'][1] : 'https://foodle.feide.no/simplesaml');
-$key = (isset($_SERVER['argv'][2]) ? $_SERVER['argv'][1] : 'key');
-$secret = (isset($_SERVER['argv'][3]) ? $_SERVER['argv'][1] : 'secret');
+$key = (isset($_SERVER['argv'][2]) ? $_SERVER['argv'][2] : 'key');
+$secret = (isset($_SERVER['argv'][3]) ? $_SERVER['argv'][3] : 'secret');

  echo 'Welcome to the OAuth CLI client' . "\n";
  $consumer = new sspmod_oauth_Consumer($key, $secret);

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"simpleSAMLphp commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/simplesamlphp-commits?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to