Skip to content

Simple request signer/validator to provide authenticated communication between two endpoints with a shared secret

License

Notifications You must be signed in to change notification settings

pkallos/SignedRequest

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A General purpose request signer and validator object.

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";

About

Simple request signer/validator to provide authenticated communication between two endpoints with a shared secret

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%