Browse files

Real Readme

  • Loading branch information...
acinader committed Jul 10, 2011
1 parent bd1e987 commit fdf41bb318754b4a9e2d5fe537efde1d8464ccf4
Showing with 11 additions and 2 deletions.
  1. +11 −2 README
@@ -1,3 +1,12 @@
-Seems like every time I want to do something server to server with a new site, we do some form of signed request.
+A General purpose request signer and validator object.
-Just whipped up a general purpose one as a hello world of sorts for git. Would love to use and maintain it, so feature requests and bug reports welcome!
+Built to enable server to server http requests that can be authenticated through the use of a shared secret.
+ $params = array('foo' => 'bar', 'Fid' => array('fig' => 'floo', 'soo' => 'tid'), 'nid' => 'nad');
+ echo "http://localhost/SignedRequest.php/?" . $signer->generateValidQueryString($params) . "\n";
+To validate the current request:
+ echo $signer->validateCurrentRequest() ? "valid\n" : "invalid";

0 comments on commit fdf41bb

Please sign in to comment.