<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Layer 7 - Blogs &#187; OAuth</title>
	<atom:link href="http://www.layer7tech.com/blogs/index.php/category/oauth/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.layer7tech.com/blogs</link>
	<description>API Management &#124; SOA Governance &#124; Cloud Integration</description>
	<lastBuildDate>Thu, 16 May 2013 21:00:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Compromised Twitter OAuth Keys</title>
		<link>http://www.layer7tech.com/blogs/index.php/compromised-twitter-oauth-keys-2/</link>
		<comments>http://www.layer7tech.com/blogs/index.php/compromised-twitter-oauth-keys-2/#comments</comments>
		<pubDate>Fri, 08 Mar 2013 19:52:35 +0000</pubDate>
		<dc:creator>Francois Lascelles</dc:creator>
				<category><![CDATA[API]]></category>
		<category><![CDATA[API Management]]></category>
		<category><![CDATA[OAuth]]></category>
		<category><![CDATA[OAuth 2.0 with Layer 7 Gateways]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[Web API]]></category>

		<guid isPermaLink="false">http://www.layer7tech.com/blogs/?p=4001</guid>
		<description><![CDATA[So Twitter’s OAuth keys have leaked. What does that mean? Don’t panic. The consequences of a client application’s key being compromised is as serious as user credentials being compromised. The risk associated with this breach is that a malicious application tricking you into participating in an OAuth handshake (phishing) could access the twitter API on [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.layer7tech.com/blogs/wp-content/uploads/2013/03/twitter-blog.jpg"><img class="alignleft size-full wp-image-4014" style="padding-right:15px; " title="twitter-blog" src="http://www.layer7tech.com/blogs/wp-content/uploads/2013/03/twitter-blog.jpg" alt="oauth twitter hack" width="264" height="193" /></a>So Twitter’s OAuth keys have <a href="http://threatpost.com/en_us/blogs/twitter-oauth-api-keys-leaked-030713">leaked</a>.</p>
<p>What does that mean? Don’t panic. The consequences of a client application’s key being compromised is as serious as user credentials being compromised.</p>
<p>The risk associated with this breach is that a malicious application tricking you into participating in an OAuth handshake (phishing) could access the twitter API on your behalf.</p>
<p>Attackers might come up with clever ways to exploit this leak. In the meantime, avoid using twitter through any application other than the twitter application itself.</p>
<p>OAuth distinguishes between confidential and public clients.</p>
<p>Applications that you can publicly download on your own device (mobile or not) fall in the public category because they are subject to their embedded secret being reverse engineered as probably happened in this case. This incident is a good illustration of the fact that client secrets should not form the basis of a secure session in public clients like mobile applications because, well, those secrets are easily discovered.</p>
<p>Twitter may create new keys for their application and look for ways to better obfuscate them but it’s only a matter of time before these new secrets are also compromised.</p>
<p>As I discussed at Cloud Security Alliance and in our last <a href="http://www.youtube.com/watch?v=-gAIaTvxA9M&amp;list=UUaOIRuPgP5KS7J0t0707AeA&amp;index=1">Tech Talk</a>, authentication involving redirection between applications on mobile device has its risks.</p>
<p>There are ways to completely secure this between applications of a same domain but solving this across 3rd party mobile apps, in a fool-proof way requires either something like a multi-factor authentication or the provisioning of client secrets post-application download which is often not practical.</p>
<p>Either way, API and application providers would do well not relying on pseudo-secrets embedded in publicly available applications as the basis of any security.</p>
<p>In the case of client applications issued by the same provider as the API they consume (e.g. the official twitter app), the password grant type make a lot more sense to me and provides a better UX.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.layer7tech.com/blogs/index.php/compromised-twitter-oauth-keys-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSO &amp; OAuth for Mobile Apps &#8211; Live Discussion, Feb 26</title>
		<link>http://www.layer7tech.com/blogs/index.php/sso-oauth-for-mobile-apps-live-discussion-feb-26/</link>
		<comments>http://www.layer7tech.com/blogs/index.php/sso-oauth-for-mobile-apps-live-discussion-feb-26/#comments</comments>
		<pubDate>Mon, 25 Feb 2013 17:00:57 +0000</pubDate>
		<dc:creator>Steven Tait</dc:creator>
				<category><![CDATA[Apps]]></category>
		<category><![CDATA[Events]]></category>
		<category><![CDATA[Identity]]></category>
		<category><![CDATA[Mobile Access]]></category>
		<category><![CDATA[OAuth]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tech Talk Tuesday]]></category>

		<guid isPermaLink="false">http://www.layer7tech.com/blogs/?p=3950</guid>
		<description><![CDATA[In case you haven&#8217;t heard, we are living in the age of mobile applications and the APIs that power them. Sometimes it&#8217;s called the API economy. Smart phones are ubiquitous, social networks are the norm and we are connected to applications on our devices all the time. We love applications like Instagram, Twitter, Evertnote and [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.layer7tech.com/live/" target="_blank"><img class="alignleft size-full wp-image-3955" style="margin: 0px 10px;" title="OAuth SSO Tech Talk" src="http://www.layer7tech.com/blogs/wp-content/uploads/2013/02/franco-oauthhero-v1.jpg" alt="OAuth SSO Tech Talk" width="300" height="175" /></a>In case you haven&#8217;t heard, we are living in the age of mobile applications and the APIs that power them. Sometimes it&#8217;s called the API economy.</p>
<p>Smart phones are ubiquitous, social networks are the norm and we are connected to applications on our devices all the time. We love applications like Instagram, Twitter, Evertnote and Snapchat. But we don&#8217;t like signing in and out of each of these applications across networks or devices. It&#8217;s awkward and cumbersome and we&#8217;re often doing it while on the go or commuting, with only one hand to use while tapping in our passwords. Besides, who wants to remember all those passwords anyway? And it&#8217;s not safe to use the same one for every application.</p>
<p>This is the major downside of using all these great new mobile applications. Most of us would gladly invite a scenario where we&#8217;d only need to log in once to access multiple applications. There&#8217;s <a href="http://en.wikipedia.org/wiki/Social_login" target="_blank">social login</a> &#8211; but is it safe and is our privacy secure? Remember <a href="http://money.cnn.com/2013/02/18/technology/burger-king-twitter-hacked/" target="_blank">what happened to Burger King&#8217;s Twitter account</a>? Enter <em>Single-Sign-On &amp; OAuth for Mobile Applications</em>.</p>
<p>On Tuesday Feb 26, we&#8217;ll be hosting a live interactive <a href="http://www.layer7tech.com/live/" target="_blank">Tech Talk </a>on security and Single Sign-On (SSO) for mobile applications. And I&#8217;m excited to welcome back Layer 7&#8242;s Chief Architect and resident OAuth expert Francois Lascelles. He&#8217;ll discuss how to provide SSO for mobile applications, without compromising the security of the apps or the APIs that power them. Francois will also be taking your questions throughout the Tech Talk. So, this will be a great opportunity to get answers to your questions about your own applications and the security that surrounds them.</p>
<p><a href="http://s1226.t.en25.com/e/er?s=1226&amp;lid=881&amp;elq=b58cf94d8fa04839b1917a91b1f8c3d4">Click here to get the event details and a reminder in your calendar.</a></p>
<p>On the day of the event, click here to join:</p>
<ul>
<li>  <a href="http://layer7.com/live" target="_blank">layer7.com/live</a></li>
</ul>
<p>Submit your questions:</p>
<ul>
<li>Tweet using the tag <a href="https://twitter.com/intent/tweet?source=webclient&amp;text=%40Layer7+%23layer7live" target="_blank">#Layer7Live</a></li>
<li>Email <a href="mailto:techtalk@layer7.com">techtalk@layer7.com</a></li>
<li>Post a message on <a title="Facebook" href="http://www.facebook.com/Layer7" target="_blank">Facebook</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.layer7tech.com/blogs/index.php/sso-oauth-for-mobile-apps-live-discussion-feb-26/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enabling OAuth Token Distributors</title>
		<link>http://www.layer7tech.com/blogs/index.php/enabling-token-distributors/</link>
		<comments>http://www.layer7tech.com/blogs/index.php/enabling-token-distributors/#comments</comments>
		<pubDate>Fri, 08 Feb 2013 19:59:02 +0000</pubDate>
		<dc:creator>Francois Lascelles</dc:creator>
				<category><![CDATA[API Management]]></category>
		<category><![CDATA[EBooks]]></category>
		<category><![CDATA[OAuth]]></category>

		<guid isPermaLink="false">http://www.layer7tech.com/blogs/?p=3872</guid>
		<description><![CDATA[Are you a token distributor? If you provide an API, you probably are. One thing I like about tokens is that, when they are compromised, your credentials are unaffected. Unfortunately, it doesn’t work so well the other way around. When your password is compromised, you should assume the attacker could also get access tokens to [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.layer7tech.com/library/ebooks/5-oauth-essentials-for-api-access-control/2870" target="_blank"><img class="alignleft size-full wp-image-3876" style="margin: 10px;" title="OAuth eBook" src="http://www.layer7tech.com/blogs/wp-content/uploads/2013/02/OAuth-eBook-v1.jpg" alt="OAuth eBook" width="287" height="300" /></a>Are you a token distributor? If you provide an API, you probably are.</p>
<p>One thing I like about tokens is that, when they are compromised, your credentials are unaffected. Unfortunately, it doesn’t work so well the other way around. When your password is compromised, you should assume the attacker could also get access tokens to act on your behalf.</p>
<p>In his post <em><a href="http://blog.talkingidentity.com/2013/02/the-dilemma-of-the-oauth-token-collector.html" target="_blank">The Dilemma of the OAuth Token Collector</a></em> and in <a href="http://storify.com/NishantK/the-case-of-too-many-tokens" target="_blank">this twitter conversation</a>, Nishant Kaushik and friends comment on the recent Twitter hack and discuss the pros and cons of instantly revoking all access tokens when a password is compromised.</p>
<p>I hear <a href="http://securitywatch.pcmag.com/none/307747-twitter-apps-can-still-tweet-despite-password-reset" target="_blank">the word of caution around automatically revoking all tokens at the first sign of a credential being compromised</a> but in a mobile world where user experience (UX) is sacred and where each tapping of a password can be a painful process, partial token revocation shouldn’t be automatically ruled out.</p>
<p>Although, as Nishant suggests, “it is usually hard to pinpoint the exact time at which an account got compromised”, you may know that it happened within a range and use the worst case scenario. I’m not saying that was necessarily the right thing to do in reaction to Twitter’s latest incident but only revoking tokens that were issued after the earliest time the hack could have taken place is a valid approach that needs to be considered. The possibility of doing this allows the API provider to mitigate the UX impact and helps avoid service interruptions (yes, I know UX would be best served by preventing credentials being compromised in the first place).</p>
<p>Of course, acting at that level requires token governance. The ability to revoke tokens is essential to the API proviver. Any token management solution being developed today should pay great attention to it. Providing a GUI to enable token revocation is a start but a token management solution should expose an API through which tokens can be revoked too. This lets existing portals and ops tooling programmatically act on token revocation. Tokens need to be easily revoked per user, per application, per creation date, per scope etc. and per combination of any of these.</p>
<p>Are you a token distributor? You should think hard about token governance. You also think hard about scaling, security, integration to exiting identity assets and interop, among other things. We cover these issues and more in our new eBook : <em><a href="http://www.layer7tech.com/library/ebooks/5-oauth-essentials-for-api-access-control/2870" target="_blank">5 OAuth Essentials for API Access Control</a></em>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.layer7tech.com/blogs/index.php/enabling-token-distributors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Give Me a JWT, I’ll Give You an Access Token</title>
		<link>http://www.layer7tech.com/blogs/index.php/give-me-a-jwt-ill-give-you-an-access-token/</link>
		<comments>http://www.layer7tech.com/blogs/index.php/give-me-a-jwt-ill-give-you-an-access-token/#comments</comments>
		<pubDate>Fri, 04 Jan 2013 23:05:26 +0000</pubDate>
		<dc:creator>Francois Lascelles</dc:creator>
				<category><![CDATA[API Management]]></category>
		<category><![CDATA[Identity]]></category>
		<category><![CDATA[OAuth]]></category>

		<guid isPermaLink="false">http://www.layer7tech.com/blogs/?p=3718</guid>
		<description><![CDATA[One of the common misconceptions about OAuth is that it provides identity federation by itself. Although supporting OAuth with federated identities is a valid pattern and is essential to many API providers, it does require the combination of OAuth with an additional federated authentication mechanism. Note that I’m not talking about leveraging OAuth for federation [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.layer7tech.com/products/oauth-toolkit" target="_blank"><img class="alignleft size-full wp-image-3724" style="margin: 0px 15px;" title="JSON Web Token" src="http://www.layer7tech.com/blogs/wp-content/uploads/2013/01/JSON-Web-Token-v1.jpg" alt="JSON Web Token" width="300" height="300" /></a>One of the common misconceptions about OAuth is that it provides identity federation by itself. Although supporting OAuth with federated identities is a valid pattern and is essential to many API providers, it does require the combination of OAuth with an additional federated authentication mechanism. Note that I’m not talking about leveraging OAuth for federation (that’s OpenID Connect) but rather an OAuth handshake in which the OAuth authorization server (AS) federates the authentication of the user.</p>
<p>There are different ways to federate the authentication of an end user as part of an OAuth handshake. One approach is to simply incorporate it as part of the authorization server’s interaction with the end user (handshake within handshake). This is only possible with grant types where the user is redirected to the authorization server in the first place, such as implicit or autz code. In that case, the user is redirected from the app, to the authorization server, to the identity provider (IDP), back to the authorization server and finally back to the application. The federated authentication is transparent to the client application participating in the OAuth handshake. The OAuth spec (which describes the interaction between the client application and the OAuth authorization server) does not get involved.</p>
<p><a href="http://flascelles.files.wordpress.com/2013/01/illustration1.png" target="_blank"><img src="http://flascelles.files.wordpress.com/2013/01/illustration1.png?w=450&amp;h=211" alt="illustration1" width="450" height="211" /></a></p>
<p>Another approach is for the client application to request the access token using an existing proof of authentication in the form of a signed claims (handshake after handshake). In this type of OAuth handshake, the redirection of the user (if any) is outside the scope of the OAuth handshake and is driven by the application. However, the exchange of the existing claim for an OAuth access token is the subject of a number of extension grant types.</p>
<p>One such extension grant type is defined in the <a href="http://tools.ietf.org/html/draft-ietf-oauth-saml2-bearer-15" target="_blank">SAML 2.0 Bearer Assertion Profiles for OAuth 2.0</a> specification, according to which a client application presents a SAML assertion to the OAuth authorization server in exchange for an OAuth access token. The <a href="http://www.layer7tech.com/products/oauth-toolkit" target="_blank">Layer 7 OAuth Toolkit</a> has implemented and provided samples for this extension grant type since its inception.</p>
<p><a href="http://flascelles.files.wordpress.com/2013/01/illustration2.png" target="_blank"><img src="http://flascelles.files.wordpress.com/2013/01/illustration2.png?w=450&amp;h=229" alt="illustration2" width="450" height="229" /></a></p>
<p>Because of the prevalence of SAML in many environments and its support by many identity providers, this grant type has the potential to be leveraged in lots of ways in the enterprise and across partners. There is, however, an emerging alternative to bloated, verbose SAML assertions – one that is more &#8220;API-friendly&#8221;, based on JSON: <a href="http://openid.net/specs/draft-jones-json-web-token-07.html" target="_blank">JSON Web Token (JWT)</a>. JWT allows the representation of claims in a compact, JSON format and the signing of such claims using JWS. For example, OpenID Connect’s ID Tokens are based on the JWT standard. The same way that a SAML assertion can be exchanged for an access token, a JWT can also be exchanged for an access token. The details of such a handshake are defined as part of another extension grant type defined as part of <a href="http://www.ietf.org/id/draft-ietf-oauth-jwt-bearer-04.txt" target="_blank">JSON Web Token (JWT) Bearer Token Profiles for OAuth 2.0</a>.</p>
<p>Give me a JWT, I’ll give you an access token. Although I expect templates for this extension grant type to be featured as part of an upcoming revision of the <a href="http://www.layer7tech.com/products/oauth-toolkit" target="_blank">OAuth Toolkit</a>, the recent addition of JWT and JSON primitives enables me to extend the current OAuth authorization server template to support JWT bearer grants with a Layer 7 Gateway today.</p>
<p>The first thing I need for this exercise is to simulate an application getting a JWT claim issued on behalf of a user. For this, I create a simple endpoint on the Gateway that authenticates a user and issues a JWT returned as part of the response.</p>
<p><a href="http://flascelles.files.wordpress.com/2013/01/idppolicy.png" target="_blank"><img src="http://flascelles.files.wordpress.com/2013/01/idppolicy.png?w=450&amp;h=484" alt="idppolicy" width="450" height="484" /></a></p>
<p>Pointing my browser to this endpoint produces the following output:</p>
<p><a href="http://flascelles.files.wordpress.com/2013/01/idoutput.png" target="_blank"><img src="http://flascelles.files.wordpress.com/2013/01/idoutput.png?w=450&amp;h=177" alt="idoutput" width="450" height="177" /></a></p>
<p>Then, I extend the authorization server token endpoint policy to accept and support the JWT bearer grant type. The similarities between the SAML bearer and the JWT bearer grant types are most obvious in this step. I was able to copy the policy branch and substitute the SAML and XPath policy constructs for JWT and JSON path ones. I can also base trust on HMAC-type signatures that involve a share secret, instead of a PKI-based signature validation, if desired.</p>
<p><a href="http://flascelles.files.wordpress.com/2013/01/newas.png" target="_blank"><img src="http://flascelles.files.wordpress.com/2013/01/newas.png?w=450&amp;h=327" alt="newAS" width="450" height="327" /></a></p>
<p>I can test this new grant type using a REST client calling the OAuth authorization server’s token endpoint. I inject into this request the JWT issued by the JWT issuer endpoint and specify the correct grant type.</p>
<p><a href="http://flascelles.files.wordpress.com/2013/01/illustration5.png" target="_blank"><img src="http://flascelles.files.wordpress.com/2013/01/illustration5.png?w=450&amp;h=307" alt="illustration5" width="450" height="307" /></a></p>
<p>I can now authorize an API call based on this new access token, as I would any other access token. The original JWT claim is saved as part of the OAuth session and is available throughout the lifespan of this access token. This JWT can later be consulted at runtime when API calls are authorized inside the API runtime policy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.layer7tech.com/blogs/index.php/give-me-a-jwt-ill-give-you-an-access-token/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Top 5 Layer 7 Blog Posts from 2012</title>
		<link>http://www.layer7tech.com/blogs/index.php/top-5-layer-7-blog-posts-from-2012/</link>
		<comments>http://www.layer7tech.com/blogs/index.php/top-5-layer-7-blog-posts-from-2012/#comments</comments>
		<pubDate>Thu, 20 Dec 2012 22:00:02 +0000</pubDate>
		<dc:creator>Sam Macklin</dc:creator>
				<category><![CDATA[API Management]]></category>
		<category><![CDATA[From the Vault]]></category>
		<category><![CDATA[OAuth]]></category>
		<category><![CDATA[REST]]></category>

		<guid isPermaLink="false">http://www.layer7tech.com/blogs/?p=3649</guid>
		<description><![CDATA[To follow up on our Top 5 Resources post from last week, here’s a look at the five most popular, most thought-provoking or just-plain-best posts from the Layer 7 blog in 2012. Mainly though, these are just personal favorites and I should note that they’re arranged chronologically (oldest first), not in order or preference. The [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.layer7tech.com/" target="_blank"><img class="alignleft size-full wp-image-3654" style="margin: 10px 15px;" title="Top 5 Layer 7 Blog Posts of 2012" src="http://www.layer7tech.com/blogs/wp-content/uploads/2012/12/Top-5-Layer-7-Blog-Posts-v2.jpg" alt="Top 5 Layer 7 Blog Posts of 2012" width="300" height="300" /></a>To follow up on our <a href="http://www.layer7tech.com/blogs/index.php/from-the-vault-top-5-resources-from-layer-7-in-2012/" target="_blank">Top 5 Resources</a> post from last week, here’s a look at the five most popular, most thought-provoking or just-plain-best posts from the Layer 7 blog in 2012. Mainly though, these are just personal favorites and I should note that they’re arranged chronologically (oldest first), not in order or preference.</p>
<p><strong><a href="http://www.layer7tech.com/blogs/index.php/the-oracle-versus-google-verdict-comes-down/" target="_blank">The Oracle-Versus-Google Verdict Comes Down</a></strong><br />
June saw a remarkable amount of media coverage focusing on the world of APIs, as the Oracle/Google court case made headlines. Layer 7’s Jaime Ryan was relieved that the ruling stated APIs are not protected by copyright. Jaime said: “By taking a strong stand on the issue… the judge has possibly prevented a whole new round of lawsuits that could have rivaled the still-ongoing Apple/Samsung/Google patent wars.”<br />
<strong><a href="http://www.layer7tech.com/blogs/index.php/the-oracle-versus-google-verdict-comes-down/" target="_blank">Read the full post &gt;&gt;&gt;</a></strong></p>
<p><strong><a href="http://www.layer7tech.com/blogs/index.php/are-open-apis-too-open-for-big-business/" target="_blank">Are Open APIs Too Open for Big Business?</a><br />
</strong>In July, Ronnie Mitra took a detailed look at how nervous major social media platforms like Twitter and Facebook were becoming about their open APIs and concluded that “enterprises will need to adapt or risk being unable to reach their customers as the device revolution continues at its explosive pace&#8230; Organizations need to think carefully and plan their API strategies in order to find the perfect balance between control and accessibility.”<br />
<strong><a href="http://www.layer7tech.com/blogs/index.php/are-open-apis-too-open-for-big-business/" target="_blank">Read the full post &gt;&gt;&gt;</a></strong></p>
<p><strong><a href="http://www.layer7tech.com/blogs/index.php/why-i-still-like-oauth-2/" target="_blank">Why I Still Like OAuth</a></strong><br />
In the midst the controversy surrounding July’s formalization of OAuth 2.0, Scott Morrison launched a passionate, though qualified, defense of the standard. Scott argued that “sometimes you just have to declare a reasonable victory and deal with the consequences later. OAuth isn’t perfect, nor is it easy. But it’s needed and it’s needed now, so let’s all forget the personality politics and just get it done.”<br />
<strong><a href="http://www.layer7tech.com/blogs/index.php/why-i-still-like-oauth-2/" target="_blank">Read the full post &gt;&gt;&gt;</a></strong></p>
<p><strong><a href="http://www.layer7tech.com/blogs/index.php/dispatches-from-rome-history-repeats-in-the-search-for-agility-reuse-through-apis/" target="_blank">History Repeats: The Search for Agility &amp; Reuse Through APIs</a></strong><br />
This September, Dimitri Sirota visited the SDP Global Summit in Rome and noticed how much of the discussion around telecom carriers’ API initiatives echoed the SOA talk of a decade ago. He noted “telco after telco (echoed) the decade-old SOA mantra of abstraction, agility and reuse when talking about their new API initiatives… But if Web APIs are to deliver on the SOA vision of agility and reuse, they will need some of the same plumbing that made Web services work.”<br />
<strong><a href="http://www.layer7tech.com/blogs/index.php/dispatches-from-rome-history-repeats-in-the-search-for-agility-reuse-through-apis/" target="_blank">Read the full post &gt;&gt;&gt;</a></strong></p>
<p><strong><a href="http://www.layer7tech.com/blogs/index.php/restful-or-not/" target="_blank">RESTful or Not?</a></strong><br />
Also in September, Mike Amundsen provided an explanation of the key term “RESTful”, which is so often used in reference to APIs and Web services. Mike explained: “Essentially, REST… is a style. Specifically, it’s a style of network-based software architecture. This style was first defined in 2000 by Roy Fielding. Fielding stated that ‘an architectural style is a coordinated set of architectural constraints that has been given a name for ease of reference’.”<br />
<strong><a href="http://www.layer7tech.com/blogs/index.php/restful-or-not/" target="_blank">Read the full post &gt;&gt;&gt;</a></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.layer7tech.com/blogs/index.php/top-5-layer-7-blog-posts-from-2012/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Runtime Token Mapping for Mobile API Traffic</title>
		<link>http://www.layer7tech.com/blogs/index.php/runtime-token-mapping-for-mobile-api-traffic/</link>
		<comments>http://www.layer7tech.com/blogs/index.php/runtime-token-mapping-for-mobile-api-traffic/#comments</comments>
		<pubDate>Sat, 10 Nov 2012 00:30:39 +0000</pubDate>
		<dc:creator>Francois Lascelles</dc:creator>
				<category><![CDATA[API Management]]></category>
		<category><![CDATA[Identity]]></category>
		<category><![CDATA[Mobile Access]]></category>
		<category><![CDATA[OAuth]]></category>

		<guid isPermaLink="false">http://www.layer7tech.com/blogs/?p=3291</guid>
		<description><![CDATA[Here’s an interesting pattern that we’re constantly running into at various API Management projects: runtime mapping between a token used by external mobile applications and another form of authentication required by an internal system. The need for this comes up when a legacy API/service with an existing access control mechanism needs to be exposed to [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.layer7tech.com/products/oauth-toolkit" target="_blank"><img class="alignleft size-full wp-image-3294" style="margin: 10px;" title="OAuth for Mobile" src="http://www.layer7tech.com/blogs/wp-content/uploads/2012/11/OAuth-for-Mobile-v2.jpg" alt="OAuth for Mobile" width="300" height="163" /></a>Here’s an interesting pattern that we’re constantly running into at various <a href="http://www.layer7tech.com/library/solution-briefs/layer-7-for-api-management/2109" target="_blank">API Management projects</a>: runtime mapping between a token used by external mobile applications and another form of authentication required by an internal system. The need for this comes up when a legacy API/service with an existing access control mechanism needs to be exposed to a mobile application for which the current access control mechanism is not appropriate.</p>
<p><strong>Example 1: Kerberos-Constrained Delegation</strong><br />
Services and APIs developed using Microsoft stacks often expect a Windows identity at runtime for role-based authorization. Providing a Kerberos ticket all the way to a mobile device outside the security domain is an anti-pattern. Instead, the user of the mobile application is subjected to an OAuth handshake. The authorization server leverages the user credentials at handshake time to also get a Kerberos ticket on behalf of this user and stores it as part of the OAuth session – see the token lifecycle management concept explained in <a href="http://www.layer7tech.com/blogs/index.php/oauth-token-management-2/" target="_blank">this previous post</a>. The OAuth access token is mapped to the Kerberos ticket at runtime when the API calls are made by the mobile application.</p>
<p><strong>Example 2: An SSO Token</strong><br />
Many backend services were originally intended to be consumed by Web applications. When the user of a Web application logs into the Web portal, a session is created in the IAM solution and when the Web portal needs to consume the internal API on behalf of the user, it leverages this same SSO token. I’m thinking here of solutions such as CA SiteMinder, Oracle Access Manager etc. When this same API is now consumed by a native mobile application, instead of a Web application, the existing login flow is no longer adequate. Again, an OAuth authorization server is leveraged to create a session between the mobile application and the API Management infrastructure. In this case, the OAuth authorization server will get the SSO token created at the same time as the front-side access token and map between the two at runtime.</p>
<p style="text-align: left;">This pattern is applicable no matter what the internal token is. Other common forms for these internal tokens include a SAML assertion issued by an STS and session IDs issued by the backend service itself through a <em>/login</em> method. Note that baking such login methods directly into an API constitutes an anti-pattern but the token mapping offers a non-intrusive “resolution”, which restores proper decoupling at the perimeter whilst avoiding any change to the legacy backend.</p>
<p><strong>OAuth Handshake</strong><br />
During an initial OAuth handshake, the OAuth authorization server is provided with credentials for the user. These credentials might be provided by the application itself in the case of a resource-owner-password-credentials grant type or by the user via a login form directly on the OAuth authorization server. The best practice is to use password grants for trusted applications (applications provided by the same provider of the API itself) and to use the implicit or authorization-code grant type for third-party applications. These credentials are used by the OAuth authorization server to authenticate the user and issue an access token. In addition to this, the OAuth authorization server may use the user credentials during this same process, to get an internal token issued by doing its own handshake with the internal token server/STS or by making a <em>/login</em>–style API call. The OAuth access token is returned to the mobile application and both tokens are stored as part of the OAuth session, alongside the other properties of the session, such as scope, timestamps etc. Note that there is often a temptation to store the user credentials as part of this session for later use but this is not recommended.</p>
<p><img class="aligncenter" style="margin-top: 10px; margin-bottom: 10px;" title="figure1-v2" src="http://www.layer7tech.com/blogs/wp-content/uploads/2012/11/figure1-v2.jpg" alt="" width="570" height="226" /></p>
<p>It makes sense to align the life spans of both the internal and external tokens so that they can be reissued together when they expire. Whenever these tokens need to be reissued, the OAuth authorization server will again be the component driving this. For better user experience, the mobile application will often want to avoid prompting the user for credentials. The OAuth standard accommodates this through the concept of refresh tokens but the internal token issuing pattern doesn’t always do that. For example, Kerberos-constrained delegation will let you get a new Kerberos token without the user&#8217;s password but other systems will not allow for that. This is often the source of motivation for storing the user credentials as part of the user session as mentioned above. You can instead allow for an internal token with a longer lifespan than the external token and reuse the existing internal token at OAuth refresh time.</p>
<p><strong>Runtime Mapping</strong><br />
At runtime, the mobile application consumes an API on behalf of the user by calling the OAuth resource server, the runtime analog of the OAuth authorization server.</p>
<p style="text-align: left;"><img class="aligncenter size-full wp-image-3298" style="margin-top: 10px; margin-bottom: 10px;" title="figure2-v2" src="http://www.layer7tech.com/blogs/wp-content/uploads/2012/11/figure2-v2.jpg" alt="" width="570" height="216" />The OAuth resource server is the component responsible for validating an incoming OAuth access token. At runtime, the resource server can retrieve session information associated with the token presented by the application from the token management layer. The resource server will look at the scope and determine whether or not the API call should be authorized or not. When access control is completely assigned to the API Management infrastructure, the resource server makes all the authorization decisions, then passes the API call to the backend API endpoint but in this case, the backend API has its own authorization mechanism. To accommodate this mapping requirement, the resource server retrieves the internal token associated with the access token presented by the mobile application and injects it to the API call to the backend service.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.layer7tech.com/blogs/index.php/runtime-token-mapping-for-mobile-api-traffic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>From the Vault: Understanding Mobile IAM with Forrester Research</title>
		<link>http://www.layer7tech.com/blogs/index.php/from-the-vault-understanding-mobile-iam-with-forrester-research/</link>
		<comments>http://www.layer7tech.com/blogs/index.php/from-the-vault-understanding-mobile-iam-with-forrester-research/#comments</comments>
		<pubDate>Wed, 22 Aug 2012 23:30:55 +0000</pubDate>
		<dc:creator>Steven Tait</dc:creator>
				<category><![CDATA[API Management]]></category>
		<category><![CDATA[BYOD]]></category>
		<category><![CDATA[Forrester]]></category>
		<category><![CDATA[From the Vault]]></category>
		<category><![CDATA[Identity]]></category>
		<category><![CDATA[Mobile Access]]></category>
		<category><![CDATA[OAuth]]></category>
		<category><![CDATA[Webinars]]></category>

		<guid isPermaLink="false">http://www.layer7tech.com/blogs/?p=2839</guid>
		<description><![CDATA[In the new hybrid enterprise, organizations need to manage business functions that flow across their domain boundaries in all directions. Increasingly, this means using APIs as conduits for opening up information to services running in the cloud and apps running on mobile devices like the iPad. For enterprises, securing and governing these APIs is not [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.layer7tech.com/library/?pid=1901#Archived%20Webinars" target="_blank"><img class="alignleft size-full wp-image-2847" style="margin: 10px;" title="Forrester Webinars" src="http://www.layer7tech.com/blogs/wp-content/uploads/2012/08/Forrester-Webinars-v1.jpg" alt="Forrester Webinars" width="300" height="236" /></a>In the new hybrid enterprise, organizations need to manage business functions that flow across their domain boundaries in all directions. Increasingly, this means using APIs as conduits for opening up information to services running in the cloud and apps running on mobile devices like the iPad. For enterprises, securing and governing these APIs is not straightforward.</p>
<p>Meanwhile, <a href="http://www.layer7tech.com/library/archived-webinars/how-to-make-your-enterprise-applications-mobile-ready-fast-featuring-forrester-research-inc-eli-lill/2" target="_blank">BYOD is making Mobile Access an urgent issue for enterprises</a>; forcing them to make application functionality available to app developers in a consistent, easily-consumable, mobile-optimized manner, via APIs. Therefore, enterprise technologies are evolving to support API-based mobile interactions.</p>
<p>Identity and access management (IAM) represents a key concern for enterprise IT and it is <a href="http://www.layer7tech.com/library/archived-webinars/identity-access-privacy-in-the-new-hybrid-enterprise-featuring-forrester-research-inc/2491" target="_blank">particularly crucial in BYOD/enterprise mobile scenarios</a>. Mobile IAM requires fundamentally new approaches and the adoption of new standards such as OAuth.</p>
<p>These are some of the most critical issues facing IT departments today but <a href="http://www.layer7tech.com/library/archived-webinars/a-practical-guide-to-api-security-oauth-for-the-enterprise-featuring-forrester-research-inc/2018" target="_blank">the associated techniques and technologies</a> are not necessarily that well understood in the enterprise world. Therefore, I&#8217;d like to take this opportunity to  flag up some relevant webinars from the Layer 7 archive, all of which feature Forrester Research.</p>
<p>If you&#8217;re facing the challenge of ensuring secure access in an enterprise mobile scenario, these resources should help you make sense of the issues:</p>
<ul>
<li><strong>How to Make Your Enterprise Applications Mobile Ready, Fast</strong><br />
Leverage backend mobile middleware to deliver mobile ready enterprise APIs<br />
<a href="http://www.layer7tech.com/library/archived-webinars/how-to-make-your-enterprise-applications-mobile-ready-fast-featuring-forrester-research-inc-eli-lill/2" target="_blank"><strong>Find out more &gt;&gt;</strong></a></li>
<li><strong>Identity, Access &amp; Privacy in the New Hybrid Enterprise</strong><br />
Make sense of OAuth, OpenID Connect and UMA<br />
<a href="http://www.layer7tech.com/library/archived-webinars/identity-access-privacy-in-the-new-hybrid-enterprise-featuring-forrester-research-inc/2491" target="_blank"><strong>Find out more &gt;&gt;</strong></a></li>
<li><strong>A Practical Guide to API Security &amp; OAuth for the Enterprise</strong><br />
Implement OAuth as part of an enterprise-level API security solution<br />
<a href="http://www.layer7tech.com/library/archived-webinars/a-practical-guide-to-api-security-oauth-for-the-enterprise-featuring-forrester-research-inc/2018" target="_blank"><strong>Find out more &gt;&gt;</strong></a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.layer7tech.com/blogs/index.php/from-the-vault-understanding-mobile-iam-with-forrester-research/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OAuth World Tour</title>
		<link>http://www.layer7tech.com/blogs/index.php/oauth-world-tour/</link>
		<comments>http://www.layer7tech.com/blogs/index.php/oauth-world-tour/#comments</comments>
		<pubDate>Thu, 09 Aug 2012 21:00:17 +0000</pubDate>
		<dc:creator>Francois Lascelles</dc:creator>
				<category><![CDATA[Conferences]]></category>
		<category><![CDATA[Events]]></category>
		<category><![CDATA[OAuth]]></category>
		<category><![CDATA[Talks]]></category>
		<category><![CDATA[Tech Talk Tuesday]]></category>

		<guid isPermaLink="false">http://www.layer7tech.com/blogs/?p=2781</guid>
		<description><![CDATA[Steve and I had another great Tech Talk in Vancouver this week, discussing the recent controversy around OAuth 2.0 and the state of the standard in general. A couple of questions that came up (thank you Michael and David, among others) were around the availability of libraries for iOS and Android platforms. Although I’m not [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.layer7tech.com/library/tech-talks/tech-talk-tuesday-oauth-20-do-we-still-need-it/2619" target="_blank"><img class="alignleft size-full wp-image-2783" style="margin: 10px;" title="OAuth World Tour" src="http://www.layer7tech.com/blogs/wp-content/uploads/2012/08/OAuth-World-Tour-v1.jpg" alt="OAuth World Tour" width="300" height="189" /></a>Steve and I had <a href="http://www.layer7tech.com/library/tech-talks/tech-talk-tuesday-oauth-20-do-we-still-need-it/2619" target="_blank">another great Tech Talk</a> in Vancouver this week, discussing the recent controversy around OAuth 2.0 and the state of the standard in general. A couple of questions that came up (thank you Michael and David, among others) were around the availability of libraries for iOS and Android platforms.</p>
<p>Although I’m not as familiar with Android, there definitely seems to be a lack of tooling for enabling OAuth 2.0 on iOS today. The lack of client-side libraries for standards-based access control on mobile devices generally could be problematic for API adoption in the enterprise, as mobile applications represent one of the main targets for enterprise APIs.</p>
<p>Facilitating OAuth on mobile applications is going to be central to my presentation at <a href="http://www.meetup.com/Chicago-Mobile-Application-Development-Enthusiasts/events/62097172/" target="_blank">next week’s Chicago Mobile Meetup</a> where I’ve been invited to speak. At the meetup, we’ll be describing client-side OAuth tooling patterns, exchanging our ideas about different approaches and discussing some code samples.</p>
<p>From there, I will be making my way to Australia for an <a href="http://www.layer7tech.com/event-registration/apibreakfast" target="_blank">API Management Breakfast Seminar in Melbourne</a>, where I’ll be talking about API Management in general but also covering the latest in OAuth 2.0 solutions. Finally, I’ll be moving on to the <a href="http://www.gartner.com/technology/summits/apac/application-development/" target="_blank">Gartner AADI Summit in Sydney</a>, where Layer 7 will be at booth S6.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.layer7tech.com/blogs/index.php/oauth-world-tour/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>To OAuth or Not to OAuth? That is the Question &#8211; The Long Road to Standardization for OAuth 2.0</title>
		<link>http://www.layer7tech.com/blogs/index.php/to-oauth-or-not-to-oauth-that-is-the-question-the-long-road-to-standardization-for-oauth-2-0/</link>
		<comments>http://www.layer7tech.com/blogs/index.php/to-oauth-or-not-to-oauth-that-is-the-question-the-long-road-to-standardization-for-oauth-2-0/#comments</comments>
		<pubDate>Mon, 06 Aug 2012 16:00:10 +0000</pubDate>
		<dc:creator>Steven Tait</dc:creator>
				<category><![CDATA[API Management]]></category>
		<category><![CDATA[Identity]]></category>
		<category><![CDATA[OAuth]]></category>
		<category><![CDATA[Tech Talk Tuesday]]></category>

		<guid isPermaLink="false">http://www.layer7tech.com/blogs/?p=2734</guid>
		<description><![CDATA[To OAuth or not to OAuth? That seems to be the question many in the API business must ask themselves now that OAuth has moved closer to becoming a standard for authentication. OAuth 2.0 reached a major milestone this week on the road to becoming a standard, when the Internet Engineering Task Force (IETF) approved [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.layer7tech.com/tech-talk-tuesday" target="_blank"><img class="alignleft size-full wp-image-2742" style="margin: 0px 20px;" title="Tech Talk with Francois Lascelles" src="http://www.layer7tech.com/blogs/wp-content/uploads/2012/08/Tech-Talk-with-Francois-Lascelles.jpg" alt="Tech Talk with Francois Lascelles" width="300" height="179" /></a>To OAuth or not to OAuth? That seems to be the question many in the API business must ask themselves now that OAuth has moved closer to becoming a standard for authentication. OAuth 2.0 reached a major milestone this week on the road to becoming a standard, when the Internet Engineering Task Force (IETF) approved a <a href="http://tools.ietf.org/html/draft-ietf-oauth-v2-31" target="_blank">draft</a> of OAuth version 2.0. Layer 7&#8242;s Chief Architect Francois Lascelles says: &#8220;This milestone solidifies the OAuth 2.0 claim of being a standard.&#8221;</p>
<p>But OAuth&#8217;s journey towards becoming a standard hasn&#8217;t been completely smooth. Last week, the original editor of the OAuth 2.0 specification and author of OAuth 1.0, Eran Hammer, <a href="http://hueniverse.com/2012/07/oauth-2-0-and-the-road-to-hell/" target="_blank">resigned and removed his name from the specifications</a>. Layer 7&#8242;s own CTO, Scott Morrison, offered his support for the specification in a blog post titled <a href="http://www.layer7tech.com/blogs/index.php/why-i-still-like-oauth-2/" target="_blank">Why I Still Like OAuth</a>, in which he stated: &#8220;In the end, OAuth is something we all need and this is why this specification remains important. The genius of OAuth is that it empowers people to perform delegated authorization on their own, without the involvement of a cabal of security admins. And this is something that is really quite profound.&#8221;</p>
<p>Still, obvious questions remain: Is OAuth 2.0 a solid protocol for authentication? Should I stop building security architecture around such a tainted specification? What other means are there for authentication if OAuth has become too focused on the enterprise? Francois Lascelles will address these questions as well as discussing and commenting on the recent OAuth 2.0 draft approval during our next live <a href="http://www.layer7tech.com/tech-talk-tuesday" target="_blank">Tech Talk</a>, on August 7. Make sure you <a href="http://img.en25.com/Web/Layer7Technologies/%7B43f83cac-584d-465b-b3d3-a0a5fe85650d%7D_Tech_Talk_Tuesday_OAuth_2.0_Do_We_Still_Need_It.ics" target="_blank">add this Tech Talk to your calendar</a>, if you want to get the event details and a reminder on the day.</p>
<p>On the day of the event, join on Livestream or Facebook:</p>
<ul>
<li><a href="http://www.livestream.com/layer7live" target="_blank">livestream.com/layer7live</a></li>
<li><a href="http://www.facebook.com/Layer7/app_142371818162" target="_blank">facebook.com/Layer7/app_142371818162</a></li>
</ul>
<p>And if you&#8217;d like to submit some questions:</p>
<ul>
<li>Tweet using the hashtag #Layer7Live</li>
<li>Email <a href="mailto:techtalk@layer7.com">techtalk@layer7.com</a></li>
<li>Check in &amp; Chat through <a href="http://www.facebook.com/Layer7/app_142371818162" target="_blank">Facebook</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.layer7tech.com/blogs/index.php/to-oauth-or-not-to-oauth-that-is-the-question-the-long-road-to-standardization-for-oauth-2-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why I Still Like OAuth</title>
		<link>http://www.layer7tech.com/blogs/index.php/why-i-still-like-oauth-2/</link>
		<comments>http://www.layer7tech.com/blogs/index.php/why-i-still-like-oauth-2/#comments</comments>
		<pubDate>Mon, 30 Jul 2012 20:50:05 +0000</pubDate>
		<dc:creator>Scott Morrison</dc:creator>
				<category><![CDATA[API]]></category>
		<category><![CDATA[API Management]]></category>
		<category><![CDATA[Identity]]></category>
		<category><![CDATA[OAuth]]></category>

		<guid isPermaLink="false">http://www.layer7tech.com/blogs/?p=2635</guid>
		<description><![CDATA[That sound of a door slamming last week was Eran Hammer storming out of the OAuth standardization process, declaring once and for all that the technology was dead and that he would no longer be a part of it. Tantrums and controversy make great social media copy, so it didn’t take long before everyone seemed [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.layer7tech.com/products/oauth-toolkit" target="_blank"><img class="alignleft size-full wp-image-2637" style="margin: 10px;" title="OAuth 2.0 Controversy" src="http://www.layer7tech.com/blogs/wp-content/uploads/2012/07/OAuth-2.0-Controversy-v2.jpg" alt="OAuth 2.0 Controversy" width="300" height="205" /></a>That sound of a door slamming last week was Eran Hammer <a href="http://hueniverse.com/2012/07/oauth-2-0-and-the-road-to-hell/" target="_blank">storming out of the OAuth standardization process</a>, declaring once and for all that the technology was dead and that he would no longer be a part of it. Tantrums and controversy make great social media copy, so it didn’t take long before everyone seemed to be talking about this one. In some quarters, you’d hardly know the London Olympics had begun.</p>
<p>So what are we to really make of all this? Is OAuth dead or at least on &#8220;the road to Hell&#8221;, as Eran now-famously put it? Certainly, my inbox is full of emails from people asking if they should stop building their security architecture around such a tainted specification.</p>
<p>I think Tim Bray, who has vast experience with the relative ups and downs of technology standardization, <a href="http://www.tbray.org/ongoing/When/201x/2012/07/28/Oauth2-dead" target="_blank">offered the best answer</a> in his own blog:</p>
<blockquote><p><em>&#8220;It’s done. Stick a fork in it. Ship the RFCs.&#8221;</em></p></blockquote>
<p>Which is to say sometimes you just have to declare a reasonable victory and deal with the consequences later. OAuth isn’t perfect, nor is it easy. But it’s needed and it’s needed now, so let’s all forget the personality politics and just get it done. And hopefully, right across the street from me here in Vancouver, where the IETF is holding it’s meetings all this week, this is what will happen.</p>
<p>In the end, OAuth is something we all need and this is why this specification remains important. The genius of OAuth is that it empowers people to perform delegated authorization on their own, without the involvement of a cabal of security admins. And this is something that is really quite profound.</p>
<p>In the past, we’ve been shackled by the centralization of control around identity and entitlements (a fancy term which really just describes the set of actions your identity is allowed, such as writing to a particular file system). This has led to a status quo in nearly every organization that is maintained first because it is hard to do otherwise but also because this equals power, which is something that is rarely surrendered without a fight.</p>
<p>The problem is that centralized identity admin can never effectively scale, at least from an administrative perspective. With OAuth, we can finally scale authentication and authorization by leveraging the user population itself — and this is the one thing that stands a chance of shattering the monopoly on centralized identity and access management (IAM). OAuth undermined the castle and the real noise we are hearing isn’t infighting on the spec but the enterprise walls falling down.</p>
<p>Here is the important insight of OAuth 2.0: <em>delegated authorization also solves that basic security sessioning problem of all apps running over stateless protocols like HTTP.</em> Think about this for a minute: The basic Web architecture provides for complete authentication on every transaction. This is dumb, so we have come up with all sorts of security context tracking mechanisms, using cookies, proprietary tokens etc. The problem with many of these is that they don’t constrain entitlements at all; a cookie is as good as a password because it really just linearly maps back to an original act of authentication.</p>
<p>OAuth formalizes this process but adds in the idea of constraint with informed user consent. And this, ladies and gentlemen, is why OAuth matters. In OAuth, you exchange a password (or other primary security token) for a time-bound access token with a limited set of capabilities to which you have explicitly agreed. In other words, the token expires fast and is good for one thing only. So you can pass it off to something else (like Twitter) and reduce your risk profile or — and this is the key insight of OAuth 2.0 — you can just use it yourself as a better security session tracker.</p>
<p>The problem with OAuth 2.0 is that it’s surprisingly hard to get to this simple idea from the explosion of protocol in OAuth 1.0a. Both specs too-quickly reduce to an exercise in swim lane diagram detail, which ironically runs counter to the movement towards simplicity and accessibility that drives today&#8217;s Web. And therein lies the rub. OAuth is more a victim of poor marketing than bad specsmanship. I have yet to see a good, simple explanation of why, followed by how. (I don’t think OAuth 1.0 was well served by the valet key analogy, which distracts from too many important insights.) As it stands today, OAuth 2.0 makes Kerberos specs seem like grade school primer material.</p>
<p>It doesn’t have to be this way. OAuth is actually deceptively simple; it is the mechanics that remain potentially complex (particularly those of the classic 1.0a, three-legged scenario). But the same can be said of SSL/TLS, which we all use daily with few problems. What OAuth needs is a set of dead simple (but nonetheless solid) libraries on the client side and equally simple, scalable support on the server. This is a tractable problem and it is coming. It also needs much better interpretation, so that people can understand it fast.</p>
<p>Personally, I agree in part with Eran Hammer’s wish buried in the conclusion of his <a href="http://hueniverse.com/2012/07/oauth-2-0-and-the-road-to-hell/" target="_blank">blog entry</a>:</p>
<blockquote><p><em>&#8220;I’m hoping someone will take 2.0 and produce a 10-page profile that’s useful for the vast majority of Web providers, ignoring the enterprise.&#8221;</em></p></blockquote>
<p>OAuth absolutely does need simple profiling for interop. But don’t ignore the enterprise. The enterprise really needs the profile too because the enterprise badly needs OAuth.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.layer7tech.com/blogs/index.php/why-i-still-like-oauth-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
