News Feed
Sections




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

Lorna Mitchell:
OAuth Middleware for Slim
October 09, 2013 @ 11:53:37

Lorna Mitchell has posted about some middleware for the popular Slim (micro)framework that helps with OAuth functionality.

OAuth can be anything you want it to be, the standards are lax and give you plenty of room for getting the right implementation for your system. However you proceed, though, you'll need to check an access token on every request - and in a Slim application, a middleware can help enormously since it hooks in to every request by design. I've recently implemented this and thought I would share.

She's created a basic middleware component that can be easily dropped into the framework to handle the checking of the tokens via an "AuthService" object. She also includes a brief snippet of how she generates the codes, combining the output of bin2hex and openssl_random_pseudo_bytes.

0 comments voice your opinion now!
oauth middleware slim access token validation generate

Link: http://www.lornajane.net/posts/2013/oauth-middleware-for-slim

blog comments powered by Disqus

Similar Posts

NetTuts.com: Rapid Application Prototyping in PHP Using a Micro Framework

NetTuts.com: Build an Admin Panel with the Fuel PHP Framework

SpyreStudios.com: Connecting with API Data from Instagr.am using PHP

Dave Marshall' Blog: Asynchronous cache priming with progress bars via Gearman, Memcache and Dojo

Lee Blue's Blog: How To Implement A Ruby on Rails style before_filter With The PHP Zend Framework


Community Events





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


language framework release library voicesoftheelephpant laravel artisanfiles series list version community composer interview symfony podcast conference opinion introduction tool security

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