<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet href="/templates/default/atom.css" type="text/css" ?>

<feed 
   xmlns="http://www.w3.org/2005/Atom"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/">
    
    <link href="http://toys.lerdorf.com/feeds/atom10.xml" rel="self" title=" Rasmus' Toys Page" type="application/atom+xml" />
    <link href="http://toys.lerdorf.com/"                        rel="alternate"    title=" Rasmus' Toys Page" type="text/html" />
    <link href="http://toys.lerdorf.com/rss.php?version=2.0"     rel="alternate"    title=" Rasmus' Toys Page" type="application/rss+xml" />
    <title type="html"> Rasmus' Toys Page</title>
    <subtitle type="html"></subtitle>
    <icon>http://toys.lerdorf.com/templates/default/img/s9y_banner_small.png</icon>
    <id>http://toys.lerdorf.com/</id>
    <updated>2010-05-25T22:12:39Z</updated>
    <generator uri="http://www.s9y.org/" version="1.6-alpha2">Serendipity 1.6-alpha2 - http://www.s9y.org/</generator>
    <dc:language>en</dc:language>
    <admin:errorReportsTo rdf:resource="mailto:" />

    <entry>
        <link href="http://toys.lerdorf.com/archives/55-Writing-an-OAuth-Provider-Service.html" rel="alternate" title="Writing an OAuth Provider Service" />
        <author>
            <name>Rasmus</name>
            <email>rasmus@lerdorf.com</email>        </author>
    
        <published>2010-05-23T04:50:22Z</published>
        <updated>2010-05-25T22:12:39Z</updated>
        <wfw:comment>http://toys.lerdorf.com/wfwcomment.php?cid=55</wfw:comment>
    
        <slash:comments>2</slash:comments>
        <wfw:commentRss>http://toys.lerdorf.com/rss.php?version=atom1.0&amp;type=comments&amp;cid=55</wfw:commentRss>
    
            <category scheme="http://toys.lerdorf.com/categories/9-PHP" label="PHP" term="PHP" />
    
        <id>http://toys.lerdorf.com/archives/55-guid.html</id>
        <title type="html">Writing an OAuth Provider Service</title>
        <content type="xhtml" xml:base="http://toys.lerdorf.com/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                Last year I showed how to use pecl/oauth to write a <a href="http://toys.lerdorf.com/archives/50-Using-pecloauth-to-post-to-Twitter.html">Twitter OAuth Consumer</a>.  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?
<br /><br />
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 <a href="http://svn.php.net/viewvc/pecl/oauth/trunk/examples/provider/">svn</a>.  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.
<br /><br /> <br /><a href="http://toys.lerdorf.com/archives/55-Writing-an-OAuth-Provider-Service.html#extended">Continue reading "Writing an OAuth Provider Service"</a>
            </div>
        </content>
        
    </entry>

</feed>