Last year I showed how to use pecl/oauth to write a
Twitter OAuth Consumer. But what about writing the other end of that? What if you need to provide OAuth access to an API for your site? How do you do it?
Luckily John Jawed and Tjerk have put quite a bit of work into pecl/oauth lately and we now have full provider support in the extension. It's not documented yet at
php.net/oauth, but there are some examples in
svn. My particular project was to hook an OAuth provider service into a large existing Kohana-based codebase. After a couple of iterations this should now be trivial for others to do with the current pecl/oauth extension.
Continue reading "Writing an OAuth Provider Service"
Published on May 22, 2010 21:50