Skip to content
Snippets Groups Projects
Commit 6891e33b authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

Bugfix for retrieving key and secret from command line arguments. OAuth demo

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1781 44740490-163a-0410-bde0-09ae8108e29a
parent 2637bd9b
No related branches found
No related tags found
No related merge requests found
......@@ -17,8 +17,8 @@ require_once($baseDir . '/lib/_autoload.php');
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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment