<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Wed, 23 May 2012 20:13:53 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[9Lessons.info: Login with Instagram OAuth using PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/17993</guid>
      <link>http://www.phpdeveloper.org/news/17993</link>
      <description><![CDATA[<p>
On the 9Lessons blog there's a recent tutorial showing you how to <a href="http://www.9lessons.info/2012/05/login-with-instagram-php.html">log into Instagram via OAuth</a> with the help of their <a href="https://www.box.com/s/4b763153ca5d99efa1e3">Instagram class</a>.
</p>
<blockquote>
The very quick registration gives you many users to your web project, we already published login with Facebook, Twitter and Google Plus now time to think about very popular photo sharing portal Instagram. This post explains you how to login with instagram Oauth API and importing user data. Create an instagram account and take a quick look at this demo thanks!
</blockquote>
<p>
The tutorial walks you through the process of setting up an application in the Instagram service, configuring the scripts with the API key/secret and callback as well as the code for a simple login page. They've also included code to grab the user's information and "popular media" from the web service and pull that information into a local MySQL database.
</p>]]></description>
      <pubDate>Wed, 23 May 2012 08:46:46 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[SpyreStudios.com: Connecting with API Data from Instagr.am using PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/17556</guid>
      <link>http://www.phpdeveloper.org/news/17556</link>
      <description><![CDATA[<p>
On SpyreStudios.com there's a post showing you how to <a href="http://spyrestudios.com/connecting-with-api-data-from-instagr-am-using-php/">connect to the Instagr.am API</a> and pull data back with a bit of simple PHP.
</p>
<blockquote>
The process of connecting into API data via OAuth is tricky. Some of the more notable social networks which have adopted this technology include Foursquare, Twitter, and Facebook. But Instagram is a very popular mobile app which has grown tremendously fast. Their recent API v1.0 release has some really neat features where you can pull popular photos, recent users, follower lists, and a whole bunch more.
</blockquote>
<p>
He points to <a href="https://github.com/macuenca/Instagram-PHP-API">the Instagr.am PHP API scripts</a> that the service already provides and shows how to set up an application on your Instagr.am account. This application then has OAuth keys you can use to connect to the service (via the PHP API scripts) and pull back basic user information - profile picture, number of photos, followers, etc. There's also <a href="http://spyrestudios.com/demos/instagram-api/index.php">a live demo</a> you can test out.
</p>]]></description>
      <pubDate>Fri, 17 Feb 2012 10:02:43 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Ibuildings techPortal: DPC Radio: Implementing OAuth]]></title>
      <guid>http://www.phpdeveloper.org/news/17520</guid>
      <link>http://www.phpdeveloper.org/news/17520</link>
      <description><![CDATA[<p>
On the Ibuildings techPortal today they've posted the latest in their DPC Radio series of podcasts as recorded at last year's <a href="http://phpconference.nl">Dutch PHP Conference</a>. In <a href="http://techportal.ibuildings.com/2012/02/08/dpc-radio-implementing-oauth/">this new episode</a> they share <i>Lorna Mitchell</i>'s talk "Implementing OAuth".
</p>
<blockquote>
With Twitter moving its API to OAuth the idea of using tokens rather than passwords for authentication went mainstream. Many explanations of OAuth make it seem complicated whereas in reality the "OAuth Dance" is a series of simple steps executed in sequence. This talk covers consuming and providing OAuth services, includes implementation examples, and is recommended for all technical leads, architects, and integration specialists.
</blockquote>
<p>
You can listen to this latest episode either via <a href="http://techportal.ibuildings.com/2012/02/08/dpc-radio-implementing-oauth/">the in-page player</a> or by <a href="http://dpcradio.s3.amazonaws.com/2011_010.mp3">downloading the mp3</a>. You can follow along with the presentation in <a href="http://www.slideshare.net/lornajane/oauth-7990565">her slides</a>.
</p>]]></description>
      <pubDate>Wed, 08 Feb 2012 14:20:29 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Richard McIntyre's Blog: Using OAuth in Lithium]]></title>
      <guid>http://www.phpdeveloper.org/news/17329</guid>
      <link>http://www.phpdeveloper.org/news/17329</link>
      <description><![CDATA[<p>
<i>Richard McIntyre</i> has a new post to his blog showing how he set up <a href="http://mackstar.com/blog/2011/12/30/using-oauth-lithium">OAuth support in a Lithium-based application</a> with the help of a handy plugin (li3_oath).
</p>
<blockquote>
The <a href="http://oauth.net/">OAuth</a> protocol is a fantastic way to login to remote services and websites. Unfortunately the spec is different in OAuth 1.0 and the yet un-solidified 2.0, the implementation is also different across different services. At the moment this is a bit of a goose chase, but libraries like <a href="https://github.com/gwoo/li3_oauth">li3_oauth</a> can help! [...] I like to be in control and calling the shots! I also want to have users have the option to login to other services under the same umbrella. Working directly with OAuth is what I wanted to do. Of course I was doing this in Lithium because it is clearly the best PHP Framework!
</blockquote>
<p>His process is broken up into four steps:</p>
<ul>
<li>Grab the latest version of the <a href="https://github.com/gwoo/li3_oauth">li3_oauth</a> plugin
<li>Fork and refactor the plugin
<li>Create the Tweet and Facebook controllers
<li>Refactor a bit more to turn it into a service
</ul>
<p>
The code changes are pretty minimal and are included in the post.
</p>]]></description>
      <pubDate>Fri, 30 Dec 2011 13:11:34 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPMaster.com: Understanding OAuth - Tweeting from Scratch, Part 2]]></title>
      <guid>http://www.phpdeveloper.org/news/17037</guid>
      <link>http://www.phpdeveloper.org/news/17037</link>
      <description><![CDATA[<p>
On PHPMaster.com today they're posted the <a href="http://phpmaster.com/understanding-oauth-2/">second part of their OAuth series</a> showing you how to use the authentication mechanism to connect to <a href="http://twitter.com">Twitter</a>'s API. (Part one <a href="http://phpdeveloper.org/news/17006">is here</a>.
</p>
<blockquote>
Welcome back to Understanding OAuth - Tweeting from Scratch. This is Part 2 of the two-part series and picks up right where we left off in <a href="http://phpmaster.com/understanding-oauth-1">Part 1</a> with your returned Access Credentials. Since obtaining the credentials is the grueling part of the process, there's not much more left to do except posting a tweet on the user's behalf. Hopefully you'll find the final steps to be a lot easier to follow and more fun to implement.
</blockquote>
<p>
They show you how to store the credentials from Part 1 into your session for safe keeping and  include a simple form you will use to send a tweet to Twitter. They choose to manually build the HTTP POST request, including the credential headers along with the payload (oauth_consumer_key, oauth_signature, oauth_token, etc).
</p>]]></description>
      <pubDate>Tue, 25 Oct 2011 10:09:48 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPMaster.com: Understanding OAuth - Tweeting from Scratch, Part 1]]></title>
      <guid>http://www.phpdeveloper.org/news/17006</guid>
      <link>http://www.phpdeveloper.org/news/17006</link>
      <description><![CDATA[<p>
PHPMaster.com has posted the first part of a new series they're presenting on <a href="http://phpmaster.com/understanding-oauth-1/">working with OAuth</a> in PHP, specifically using it to connect to the <a href="http://twitter.com">Twitter</a> API. This first part of the series introduces you to the concepts of OAuth and some early code to work with user credentials.
</p>
<blockquote>
A common complaint about <a href="http://oauth.net/">OAuth</a> is that it is very difficult to understand, but perhaps some of that confusion is because of an expectation that the abstraction provided by a third-party library will erase the need to understand the steps of an OAuth transaction - it does not. This two-part article demonstrates <a href="http://tools.ietf.org/rfc/rfc5849.txt">how OAuth v1 works</a> by explaining the process of connecting a PHP application to the <a href="https://dev.twitter.com/">Twitter API</a> using only a few built-in functions to post a message to a user's Twitter stream.
</blockquote>
<p>
The process is broken up into two steps - first you'll need to set up the request credentials so your application can connect to the Twitter service (as <a href="https://dev.twitter.com/apps">created here</a>) then use that connection to fetch the rest of the necessary credentials (three total: Consumer, Request and Access Credentials). Cut and pasteable code is provided.
</p>]]></description>
      <pubDate>Tue, 18 Oct 2011 10:27:41 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Carson McDonald's Blog: Google OAuth for Installed Apps PHP Example]]></title>
      <guid>http://www.phpdeveloper.org/news/16978</guid>
      <link>http://www.phpdeveloper.org/news/16978</link>
      <description><![CDATA[<p>
<i>Carson McDonald</i> has posted an example of how to <a href="http://www.ioncannon.net/programming/1443/google-oauth-for-installed-apps-php-example/">use the Google OAuth for Installed Apps</a> tool to authenticate users.
</p>
<blockquote>
I have been working on a long needed update to the <a href="http://www.ioncannon.net/projects/google-analytics-dashboard-wordpress-widget/">Google analytics dashboard plugin for WordPress</a> and one of the items I had on my TODO list was using Google's OAuth login instead of the old ClientLogin. Setting OAuth up for a WordPress plugin is complicated because it isn't a hosted application and as such I can't register it to get OAuth keys. That is where a special way of doing OAuth comes in called <a href="http://code.google.com/apis/accounts/docs/OAuthForInstalledApps.html">OAuth for installed apps</a>.
</blockquote>
<p>
He uses <a href="http://oauth.googlecode.com/svn/code/php/">this OAuth library</a> to handle the "dirty work" of the connections. With that included in the application, he shows how to - in two phases - make an authentication system that direct the user to a Google link for completing the authentication process. He points to the <a href="http://code.google.com/apis/gdata/articles/oauth.html">Google OAuth docs</a> and <a href="http://googlecodesamples.com/oauth_playground/">playground</a> as good resources to help you during the process.
</p>]]></description>
      <pubDate>Tue, 11 Oct 2011 12:13:10 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Phil Sturgeon's Blog: NinjAuth: The Social Integration Package PHP has been dying for]]></title>
      <guid>http://www.phpdeveloper.org/news/16872</guid>
      <link>http://www.phpdeveloper.org/news/16872</link>
      <description><![CDATA[<p>
New on his blog <i>Phil Sturgeon</i> has a post about the <a href="http://philsturgeon.co.uk/blog/2011/09/ninjauth-social-integration-php">social integration package PHP has been dying for</a> - <a href="https://github.com/philsturgeon/fuel-ninjauth">NinjAuth</a>. It has hooks for OAuth and OAuth2 connections and makes it simple to use them completely abstracted.
</p>
<blockquote>
In the past I have never needed to implement oAuth into a PHP project. I have done it in Rails and boy it was easy thanks to OmniAuth. <a href="https://github.com/intridea/omniauth">OmniAuth</a> abstracts away so much of the grunt work that it takes about 5 minutes to add a new social network to your site, and 4 of those minutes are spent signing up for the API keys. What options do we have in the world of PHP? A bunch of screwy hacks or provider specific classes like TwitterOAuth. I don't want to hunt down 20 libraries with different methods, I want to get a key, bang it in and go to the pub. Well, now I can!
</blockquote>
<p>
The <a href="https://github.com/philsturgeon/fuel-ninjauth>NinjaAuth</a> system allows a user to have multiple "authentications" groups under it corresponding to various social networking sites. It uses the <a href="https://github.com/fuel-packages/fuel-oauth">fuel-oauth</a> and <a href="https://github.com/fuel-packages/fuel-oauth2">fuel-oauth2</a> packages to drive its backend. He includes <a href="http://philsturgeon.co.uk/blog/2011/09/ninjauth-social-integration-php">a code snippet</a> showing how to configure the providers (complete with keys needed for auth) including Facebook, Flickr, GitHub, YouTube and - of course - Twitter. You can grab the latest version of this library from <a href="https://github.com/philsturgeon/fuel-ninjauth">Phil's github account</a>.
</p>]]></description>
      <pubDate>Mon, 19 Sep 2011 08:59:31 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Lorna Mitchell' Blog: PHP OAuth Provider: Access Tokens]]></title>
      <guid>http://www.phpdeveloper.org/news/16788</guid>
      <link>http://www.phpdeveloper.org/news/16788</link>
      <description><![CDATA[<p>
<i>Lorna Mitchell</i> has posted the latest in her look at OAuth in PHP to her blog today, an <a href="http://www.lornajane.net/posts/2011/php-oauth-provider-access-tokens">introduction to access tokens</a> - generating and handling them in your application.
</p>
<blockquote>
I've been working with <a href="http://oauth.net/">OAuth</a>, as a provider and consumer, and there isn't a lot of documentation around it for PHP at the moment so I thought I'd share my experience in this series of articles. [...] This entry follows on from the ones about the <a href="http://www.lornajane.net/posts/2011/PHP-OAuth-Provider-Initial-Requirements">initial requirements</a>, <a href="http://www.lornajane.net/posts/2011/PHP-OAuth-Provider-Request-Tokens">how to how to handle request tokens</a>, and <a href="http://www.lornajane.net/posts/2011/php-oauth-provider-authenticate-user">authenticating users</a>.
</blockquote>
<p>
In this latest post, she talks about the three different types of tokens - consumer, request and verififier - and how to use them to locate a user in your app's users. Her code validates the request token and verifier against the database and, if successful, inserts the rest of the token information for the user.
</p>]]></description>
      <pubDate>Tue, 30 Aug 2011 08:28:04 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Stas Malyshev's Blog: ZF Oauth Provider]]></title>
      <guid>http://www.phpdeveloper.org/news/16783</guid>
      <link>http://www.phpdeveloper.org/news/16783</link>
      <description><![CDATA[<p>
In a new post <i>Stas Malyshev</i> has <a href="http://php100.wordpress.com/2011/08/28/zf-oauth-provider/">shared some code for an OAuth provider</a> he's written up to work specifically with <a href="http://framework.zend.com">Zend Framework</a> applications. 
</p>
<blockquote>
Zend Framework has pretty good <a href="http://en.wikipedia.org/wiki/OAuth">OAuth</a> <a href="http://framework.zend.com/manual/en/zend.oauth.introduction.html">consumer implementation</a>. However, it has <a href="http://stackoverflow.com/questions/4061435/zend-framework-oauth-provider">no support</a> for implementing OAuth provider, and it turns out that there aren't many <a href="http://stackoverflow.com/questions/6086454/pure-php-oauth-provider">other libraries</a> for it. Most examples out there base on <a href="http://php.net/oauth">PECL oauth extension</a>, which works just fine, with one caveat - you have to have this PECL extension installed, while ZF implementation does not require that. So I went ahead and wrote <a href="https://github.com/smalyshev/Zend_OAuth_Provider">some code that allows to easily add OAuth provider to your ZF-based or ZF-using application</a>. That should make writing OAuth provider easier.
</blockquote>
<p>
His code just fleshes out the server portion of the provider, not all of the token generation and key handling it'll need on the backend - that'll still be the job of your scripts. You can find the library over on github in his <a href="https://github.com/smalyshev/Zend_OAuth_Provider">Zend_OAuth_Provider</a> repository.
</p>]]></description>
      <pubDate>Mon, 29 Aug 2011 10:41:18 -0500</pubDate>
    </item>
  </channel>
</rss>

