News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Jeremy Kendall:
API Query Authentication With Query Auth
August 15, 2013 @ 09:41:46

Jerermy Kendall has written up a post for his site showing the use of his QueryAuth library for API authentication, complete with plenty of examples. The library makes it simple to sign and verify requests based on a key, secret and parameters given.

Most APIs require some sort of query authentication: a method of signing API requests with an API key and signature. The signature is usually generated using a shared secret. When you're consuming an API, there are (hopefully) easy to follow steps to create signatures. When you're writing your own API, you have to whip up both server-side signature validation and a client-side signature creation strategy. Query Auth endeavors to handle both of those tasks; signature creation and signature validation.

He includes code examples showing how to create a signed request, validate the signature from an incoming request and generate randomized keys and secrets. He's also created a sample implementation as a Vagrant box that sets up a Slim framework based application and uses Guzzle to make requests. He briefly looks at some of the code that makes it work and what the raw HTTP request and response look like for the result.

0 comments voice your opinion now!
queryauth api authentication signature parameter key secret tutorial

Link: http://jeremykendall.net/2013/08/13/api-query-authentication-with-query-auth

blog comments powered by Disqus

Similar Posts

Web Developement Blog: Curl: Location redirect while open_basedir is set

IBM developerWorks: Build Ajax-based Web sites with PHP

KillerPHP Blog: PHP Video: Processing Forms with PHP - part 2

KillerPHP.com: Zend Framework Components Part 2: Zend_View

Alexy Kovyrin\'s Blog: Nginx With PHP As FastCGI Howto


Community Events

Don't see your event here?
Let us know!


release application series interview language example performance php7 voicesoftheelephpant community symfony2 framework configure conference podcast opinion laravel part2 api introduction

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework