<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for cocoa*life</title>
	<atom:link href="http://www.cocoalife.net/comments/feed" rel="self" type="application/rss+xml" />
	<link>http://www.cocoalife.net</link>
	<description>Whether we can achieve something entirely depends upon our intensity of faith.</description>
	<lastBuildDate>Fri, 18 Nov 2011 16:14:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Comment on How to create OAuth / xAuth Service Provider in Ruby on Rails with devise by Igor</title>
		<link>http://www.cocoalife.net/2011/02/post_866.html/comment-page-1#comment-34819</link>
		<dc:creator>Igor</dc:creator>
		<pubDate>Fri, 18 Nov 2011 16:14:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.cocoalife.net/?p=866#comment-34819</guid>
		<description>I found that you have to change the oauth-plugin/lib/oauth/controllers/provider_controller.rb file, line 12:

from

oauthenticate :strategies =&gt; :oauth10_request_token, :interactive =&gt; false, :only =&gt; [:access_token]

to 

oauthenticate :strategies =&gt; [:oauth10_request_token,:two_legged], :interactive =&gt; false, :only =&gt; [:access_token]

in order to make it works. It adds :two_legged to list of available strategies for :access_token request

However, the line number can be changed in future.</description>
		<content:encoded><![CDATA[							<p>I found that you have to change the oauth-plugin/lib/oauth/controllers/provider_controller.rb file, line 12:</p>
							<p>from</p>
							<p>oauthenticate :strategies =&gt; :oauth10_request_token, :interactive =&gt; false, :only =&gt; [:access_token]</p>
							<p>to </p>
							<p>oauthenticate :strategies =&gt; [:oauth10_request_token,:two_legged], :interactive =&gt; false, :only =&gt; [:access_token]</p>
							<p>in order to make it works. It adds :two_legged to list of available strategies for :access_token request</p>
							<p>However, the line number can be changed in future.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to create OAuth / xAuth Service Provider in Ruby on Rails with devise by Ruby on Rails 3.1 で OAuth Provider &#171; 株式会社一騎</title>
		<link>http://www.cocoalife.net/2011/02/post_866.html/comment-page-1#comment-34818</link>
		<dc:creator>Ruby on Rails 3.1 で OAuth Provider &#171; 株式会社一騎</dc:creator>
		<pubDate>Tue, 08 Nov 2011 07:31:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.cocoalife.net/?p=866#comment-34818</guid>
		<description>[...] cocoa*life - How to create OAuth / xAuth Service Provider in Ruby on Rails with devise [...]</description>
		<content:encoded><![CDATA[							<p>[...] cocoa*life &#8211; How to create OAuth / xAuth Service Provider in Ruby on Rails with devise [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Apple Push Notification Serviceを利用した、iPhone クライアントと、Rubyによるサーバの作成。 by Apple Push Notificationサービスの実装 &#124; foxApp</title>
		<link>http://www.cocoalife.net/2009/07/post_839.html/comment-page-1#comment-34817</link>
		<dc:creator>Apple Push Notificationサービスの実装 &#124; foxApp</dc:creator>
		<pubDate>Mon, 31 Oct 2011 22:44:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.cocoalife.net/?p=839#comment-34817</guid>
		<description>[...]  [...]</description>
		<content:encoded><![CDATA[							<p>[...]  [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on xAuth Consumer Sample using Ruby by Twitter authorization via oauth - Programmers Goodies</title>
		<link>http://www.cocoalife.net/2011/01/post_864.html/comment-page-1#comment-34813</link>
		<dc:creator>Twitter authorization via oauth - Programmers Goodies</dc:creator>
		<pubDate>Sun, 25 Sep 2011 02:40:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.cocoalife.net/?p=864#comment-34813</guid>
		<description>[...] some example of how to use xAuth with [...]</description>
		<content:encoded><![CDATA[							<p>[...] some example of how to use xAuth with [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to use Xcode 3 color themes in Xcode 4 by Squrk</title>
		<link>http://www.cocoalife.net/2011/03/post_872.html/comment-page-1#comment-34812</link>
		<dc:creator>Squrk</dc:creator>
		<pubDate>Thu, 11 Aug 2011 06:35:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.cocoalife.net/?p=872#comment-34812</guid>
		<description>感謝
Thanks this worked perfectly.</description>
		<content:encoded><![CDATA[							<p>感謝<br />
							Thanks this worked perfectly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to create OAuth / xAuth Service Provider in Ruby on Rails with devise by Hoseong Hwang</title>
		<link>http://www.cocoalife.net/2011/02/post_866.html/comment-page-1#comment-34768</link>
		<dc:creator>Hoseong Hwang</dc:creator>
		<pubDate>Fri, 22 Apr 2011 07:26:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.cocoalife.net/?p=866#comment-34768</guid>
		<description>I&#039;m back here.
my previous comments are there.. haha please ignore them.
I&#039;ll be more precise.

As far as i understand, if params[:x_auth_mode] == &#039;client_auth&#039; , then :two_legged should be applied to filter.
But the original code of oauth-plugin,

  oauthenticate :strategies =&gt; :two_legged, :interactive =&gt; false, :only =&gt; [:request_token]
  oauthenticate :strategies =&gt; :oauth10_request_token, :interactive =&gt; false, :only =&gt; [:access_token]

will reject because my strategy for access_token via xauth is :two_legged, 
but :oauth10_request_token is the only strategy that Authenticator assumes.
I think your code in [config/initializers/oauth.rb] is solution for that.
But in my opinion, it doesn&#039;t seem that it changes the filter itself, but a procedure happens inside of the &#039;Authenticator.allow?&#039; method. 

def allow?
  if @strategies.include?(:interactive) &amp;&amp; interactive
    true
  elsif !(@strategies &amp; env[&quot;oauth.strategies&quot;].to_a).empty?
    @controller.send :current_user=, token.user if token
    true
  else
    if @strategies.include?(:interactive) 
      controller.send :access_denied
    else
      controller.send :invalid_oauth_response
    end
  end
end

I think &#039;oauth10_request_token_with_xauth&#039; method has no chance to be executed unless the condition // elsif !(@strategies &amp; env[&quot;oauth.strategies&quot;].to_a).empty? // is true.

As I&#039;m not deeply understanding ruby, i might be seriously wrong.
Can you advise me?</description>
		<content:encoded><![CDATA[							<p>I&#8217;m back here.<br />
							my previous comments are there.. haha please ignore them.<br />
							I&#8217;ll be more precise.</p>
							<p>As far as i understand, if params[:x_auth_mode] == &#8216;client_auth&#8217; , then :two_legged should be applied to filter.<br />
							But the original code of oauth-plugin,</p>
							<p>  oauthenticate :strategies =&gt; :two_legged, :interactive =&gt; false, :only =&gt; [:request_token]<br />
							  oauthenticate :strategies =&gt; :oauth10_request_token, :interactive =&gt; false, :only =&gt; [:access_token]</p>
							<p>will reject because my strategy for access_token via xauth is :two_legged,<br />
							but :oauth10_request_token is the only strategy that Authenticator assumes.<br />
							I think your code in [config/initializers/oauth.rb] is solution for that.<br />
							But in my opinion, it doesn&#8217;t seem that it changes the filter itself, but a procedure happens inside of the &#8216;Authenticator.allow?&#8217; method. </p>
							<p>def allow?<br />
							  if @strategies.include?(:interactive) &amp;&amp; interactive<br />
							    true<br />
							  elsif !(@strategies &amp; env["oauth.strategies"].to_a).empty?<br />
							    @controller.send :current_user=, token.user if token<br />
							    true<br />
							  else<br />
							    if @strategies.include?(:interactive)<br />
							      controller.send :access_denied<br />
							    else<br />
							      controller.send :invalid_oauth_response<br />
							    end<br />
							  end<br />
							end</p>
							<p>I think &#8216;oauth10_request_token_with_xauth&#8217; method has no chance to be executed unless the condition // elsif !(@strategies &amp; env["oauth.strategies"].to_a).empty? // is true.</p>
							<p>As I&#8217;m not deeply understanding ruby, i might be seriously wrong.<br />
							Can you advise me?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to create OAuth / xAuth Service Provider in Ruby on Rails with devise by thefron</title>
		<link>http://www.cocoalife.net/2011/02/post_866.html/comment-page-1#comment-34752</link>
		<dc:creator>thefron</dc:creator>
		<pubDate>Thu, 21 Apr 2011 14:13:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.cocoalife.net/?p=866#comment-34752</guid>
		<description>hi.
I followed just like this article, but with your sample xauth consumer it always return 401 Unauthorized.
I think your code in config/initializer doesn&#039;t apply :two_legged strategy to access_token method.
Can you please comment about this?</description>
		<content:encoded><![CDATA[							<p>hi.<br />
							I followed just like this article, but with your sample xauth consumer it always return 401 Unauthorized.<br />
							I think your code in config/initializer doesn&#8217;t apply :two_legged strategy to access_token method.<br />
							Can you please comment about this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to create OAuth / xAuth Service Provider in Ruby on Rails with devise by Thefron</title>
		<link>http://www.cocoalife.net/2011/02/post_866.html/comment-page-1#comment-34735</link>
		<dc:creator>Thefron</dc:creator>
		<pubDate>Fri, 15 Apr 2011 07:07:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.cocoalife.net/?p=866#comment-34735</guid>
		<description>hi~
I&#039;m following up with this article trying to implement xauth support.
When xauth requested using sample xauth consumer you&#039;ve posted(http://www.cocoalife.net/2011/01/post_864.html),
I always receive 401 Unauthorized.
So i digged in oauth-plugin.
The problem was from when Authenticator is initialized with  [:oauth10_request_token] but env[&quot;oauth.strategies&quot;] contains only [:two_legged].</description>
		<content:encoded><![CDATA[							<p>hi~<br />
							I&#8217;m following up with this article trying to implement xauth support.<br />
							When xauth requested using sample xauth consumer you&#8217;ve posted(http://www.cocoalife.net/2011/01/post_864.html),<br />
							I always receive 401 Unauthorized.<br />
							So i digged in oauth-plugin.<br />
							The problem was from when Authenticator is initialized with  [:oauth10_request_token] but env["oauth.strategies"] contains only [:two_legged].</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Installing Chef Server with RVM by inline skates: Etnies Men&#39;s Rvm Skate Shoe &#171; Rippen Roller Skate Site</title>
		<link>http://www.cocoalife.net/2010/12/post_826.html/comment-page-1#comment-34005</link>
		<dc:creator>inline skates: Etnies Men&#39;s Rvm Skate Shoe &#171; Rippen Roller Skate Site</dc:creator>
		<pubDate>Sun, 02 Jan 2011 19:12:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.cocoalife.net/?p=826#comment-34005</guid>
		<description>[...] cocoa*life &#8211; Installing Chef Server with RVM [...]</description>
		<content:encoded><![CDATA[							<p>[...] cocoa*life &#8211; Installing Chef Server with RVM [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Knight Rider 2008 第1話 A Knight In Shining Armor by kattenvoer</title>
		<link>http://www.cocoalife.net/2008/09/post_724.html/comment-page-1#comment-33982</link>
		<dc:creator>kattenvoer</dc:creator>
		<pubDate>Sun, 26 Dec 2010 09:33:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.cocoalife.net/2008/09/post_724.html#comment-33982</guid>
		<description>&lt;strong&gt;De diervoerwinkel, alle premium merken kattenvoer en hondenvoer voor de laagste prijs!...&lt;/strong&gt;

De diervoerwinkel, alle premium merken kattenvoer en hondenvoer voor de laagste prijs!...</description>
		<content:encoded><![CDATA[							<p><strong>De diervoerwinkel, alle premium merken kattenvoer en hondenvoer voor de laagste prijs!&#8230;</strong></p>
							<p>De diervoerwinkel, alle premium merken kattenvoer en hondenvoer voor de laagste prijs!&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

