<?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>Mon, 21 May 2012 07:43:12 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Brian Swan's Blog: Accessing OData for SQL Azure with AppFabric Access Control and PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/15076</guid>
      <link>http://www.phpdeveloper.org/news/15076</link>
      <description><![CDATA[<p>
<i>Brian Swan</i> has <a href="http://blogs.msdn.com/b/brian_swan/archive/2010/09/02/accessing-odata-for-sql-azure-with-appfabric-access-control-and-php.aspx">a new post</a> to his blog today about consuming protected feeds of <a href="http://www.odata.org/">OData</a> coming from <a href="http://msdn.microsoft.com/en-us/windowsazure/sqlazure/default.aspx">SQL Azure</a> in a PHP application.
</p>
<blockquote>
I did write a post a few weeks ago that described how to enable anonymous access to SQL Azure OData feeds (<a href="http://blogs.msdn.com/b/brian_swan/archive/2010/08/03/consuming-sql-azure-data-with-the-odata-sdk-for-php.aspx">Consuming SQL Azure Data with the OData SDK for PHP</a>), but I had a few things to learn about AppFabric access control before I felt comfortable writing about authenticated access to these feeds.
</blockquote>
<p>
He starts from the Azure side, creating a sample OData feed and adding permissions to only allow access to a specific (database) user for the feed. You'll use a set of data to connect to the feed - a username, a secret key, an issuer name and the OData endpoint address. Then, using the <a href="http://odataphp.codeplex.com/">OData SDK</a> he shows how to generate the needed classes with the automatic tool and use them to connect to the endpoint and retrieve data from the feed. He also includes a little snippet for those that might not want to use the SDK - an example using <a href="http://php.net/curl">curl</a> to connect and authorize the session.
</p>]]></description>
      <pubDate>Fri, 03 Sep 2010 13:42:15 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Brian Swan's Blog: Access Control with the Azure AppFabric SDK for PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/14998</guid>
      <link>http://www.phpdeveloper.org/news/14998</link>
      <description><![CDATA[<p>
<i>Brian Swan</i> has <a href="http://blogs.msdn.com/b/brian_swan/archive/2010/08/19/access-control-with-the-azure-appfabric-sdk-for-php.aspx">a follow-up post</a> to his <a href="http://blogs.msdn.com/b/brian_swan/archive/2010/08/17/understanding-windows-azure-appfabric-access-control-via-php.aspx">introductory look</a> at access control in Azure AppFabric applications with a bit more in-depth look at some of the settings to help you refine your controls.
</p>
<blockquote>
I will again build a barpatron.php  client (i.e. a customer) that requests a token from the AppFabric access control service (ACS) (the bouncer). Upon receipt of a token, the client will present it to the bartender.php  service (the bartender) to attempt to access a protected resource (drinks). If the service can successfully validate the token, the protected resource will be made available.
</blockquote>
<p>
You'll need to have an Azure instance set up and have already set up the scripts from his <a href="http://blogs.msdn.com/b/brian_swan/archive/2010/08/17/understanding-windows-azure-appfabric-access-control-via-php.aspx">previous post</a> to follow along. He updates the scripts to enhance with token checking and allowing the "patron" to request a token. Complete code is <a href="http://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Components-PostAttachments/00-10-05-16-90/ACS_5F00_Tutorial.zip">available for download</a>.
</p>]]></description>
      <pubDate>Fri, 20 Aug 2010 11:41:54 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Brian Swan's Blog: Understanding Windows Azure AppFabric Access Control via PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/14979</guid>
      <link>http://www.phpdeveloper.org/news/14979</link>
      <description><![CDATA[<p>
<i>Brian Swan</i> has <a href="http://blogs.msdn.com/b/brian_swan/archive/2010/08/17/understanding-windows-azure-appfabric-access-control-via-php.aspx">a new post</a> to his blog today that aims to help you understand how your scripts access the Windows Azure AppFabric and how to can control the levels with the Access Control Service.
</p>
<blockquote>
In a post I wrote a couple of weeks ago, <a href="http://blogs.msdn.com/b/brian_swan/archive/2010/08/03/consuming-sql-azure-data-with-the-odata-sdk-for-php.aspx">Consuming SQL Azure Data with the OData SDK for PHP</a>, I didn't address how to protect <a href="https://www.sqlazurelabs.com/">SQL Azure OData</a> feeds with the <a href="http://www.microsoft.com/windowsazure/appfabric/">Windows Azure AppFabric</a> access control service because, quite frankly, I didn't understand how to do it at the time. What I aim to do in this post is share with you some of what I've learned since then. I won't go directly into how to protect OData feeds with AppFabric access control service (ACS, for short), but I will use PHP to show you how ACS works.
</blockquote>
<p>
He illustrates with an example from <a href="http://www.jasonfollas.com/blog/archive/2010/03/08/windows-azure-platform-appfabric-access-control-overview.aspx">another blog</a> about a night club with a bartender, bouncer and checking wristbands to make sure the patrons are allowed to drink. In this case, the "bouncer" is the Access Control Service, a built-in feature of your Azure instance. He shows how to set it up, configure policies and the PHP code for both sides of the equation - the "bouncer" to change the certification sent and the user with a "wristband" to send the credentials on connect.
</p>]]></description>
      <pubDate>Wed, 18 Aug 2010 09:49:35 -0500</pubDate>
    </item>
  </channel>
</rss>

