Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Real Readme

  • Loading branch information...
commit fdf41bb318754b4a9e2d5fe537efde1d8464ccf4 1 parent bd1e987
@acinader authored
Showing with 11 additions and 2 deletions.
  1. +11 −2 README
View
13 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.
+
+Usage:
+
+ $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";
Please sign in to comment.
Something went wrong with that request. Please try again.