<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments for Unhandled expression</title>
	<atom:link href="http://unhandledexpression.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://unhandledexpression.com</link>
	<description>One commit a day makes the bugs go away</description>
	<lastBuildDate>Wed, 30 May 2012 12:24:56 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>Comment on Rails and oauth-plugin part 1: the provider by Géal</title>
		<link>http://unhandledexpression.com/2011/06/02/rails-and-oauth-plugin-part-1-the-provider/#comment-357</link>
		<dc:creator><![CDATA[Géal]]></dc:creator>
		<pubDate>Wed, 30 May 2012 12:24:56 +0000</pubDate>
		<guid isPermaLink="false">http://unhandledexpression.com/?p=218#comment-357</guid>
		<description><![CDATA[That&#039;s a good idea. Once you have a provider up and running, it shouldn&#039;t be too hard to include OAuth token verification in your API.]]></description>
		<content:encoded><![CDATA[<p>That&#8217;s a good idea. Once you have a provider up and running, it shouldn&#8217;t be too hard to include OAuth token verification in your API.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Rails and oauth-plugin part 1: the provider by Géal</title>
		<link>http://unhandledexpression.com/2011/06/02/rails-and-oauth-plugin-part-1-the-provider/#comment-356</link>
		<dc:creator><![CDATA[Géal]]></dc:creator>
		<pubDate>Wed, 30 May 2012 12:22:31 +0000</pubDate>
		<guid isPermaLink="false">http://unhandledexpression.com/?p=218#comment-356</guid>
		<description><![CDATA[Thank you for your help!]]></description>
		<content:encoded><![CDATA[<p>Thank you for your help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Rails and oauth-plugin part 1: the provider by berto</title>
		<link>http://unhandledexpression.com/2011/06/02/rails-and-oauth-plugin-part-1-the-provider/#comment-353</link>
		<dc:creator><![CDATA[berto]]></dc:creator>
		<pubDate>Wed, 23 May 2012 18:39:32 +0000</pubDate>
		<guid isPermaLink="false">http://unhandledexpression.com/?p=218#comment-353</guid>
		<description><![CDATA[this is really great. I&#039;m not using devise, so I&#039;ll have to look into getting this working with my authentication system properly. By the way, I&#039;m thinking about using this with grape for api authentication. Do you think that&#039;s a good idea?]]></description>
		<content:encoded><![CDATA[<p>this is really great. I&#8217;m not using devise, so I&#8217;ll have to look into getting this working with my authentication system properly. By the way, I&#8217;m thinking about using this with grape for api authentication. Do you think that&#8217;s a good idea?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Rails and oauth-plugin part 1: the provider by Patrick</title>
		<link>http://unhandledexpression.com/2011/06/02/rails-and-oauth-plugin-part-1-the-provider/#comment-351</link>
		<dc:creator><![CDATA[Patrick]]></dc:creator>
		<pubDate>Fri, 18 May 2012 03:08:45 +0000</pubDate>
		<guid isPermaLink="false">http://unhandledexpression.com/?p=218#comment-351</guid>
		<description><![CDATA[Bonjour Géal!
Thanks a lot for this tutorial. It was very useful and easy to follow, and saved me a lot of time.

I&#039;m a Rails newbie and am using Rails 3.2.3, and had to do the following additional changes to the code generated by oauth-plugin for it to work for OAuth 2.0. I&#039;m posting it here to help others who might face the same problems.

Problem 1. The error_messages_for method isn&#039;t available anymore

$ vi app/models/client_application.rb
-&gt; edit to use @client_application.errors instead

Problem 2. Mandatory attr_accessible calls are missing.

I ran into the problem in these 3 models.

$ vi app/models/client_application.rb 
-&gt; Add: attr_accessible :name, :url, :callback_url, :support_url

$ vi app/models/oauth2_verifier.rb 
-&gt; Add: attr_accessible :client_application, :user, :scope, :callback_url

$ vi app/models/oauth2_token.rb
-&gt; Add: attr_accessible :user, :client_application, :scope

Problem 3. Error in the OAuth 2 Authorize view.

#   undefined method `client_application&#039; for nil:NilClass

$ vi app/views/oauth/oauth2_authorize.html.erb
-&gt; Change all @token.client_application to @client_application

That&#039;s all.]]></description>
		<content:encoded><![CDATA[<p>Bonjour Géal!<br />
Thanks a lot for this tutorial. It was very useful and easy to follow, and saved me a lot of time.</p>
<p>I&#8217;m a Rails newbie and am using Rails 3.2.3, and had to do the following additional changes to the code generated by oauth-plugin for it to work for OAuth 2.0. I&#8217;m posting it here to help others who might face the same problems.</p>
<p>Problem 1. The error_messages_for method isn&#8217;t available anymore</p>
<p>$ vi app/models/client_application.rb<br />
-&gt; edit to use @client_application.errors instead</p>
<p>Problem 2. Mandatory attr_accessible calls are missing.</p>
<p>I ran into the problem in these 3 models.</p>
<p>$ vi app/models/client_application.rb<br />
-&gt; Add: attr_accessible :name, :url, :callback_url, :support_url</p>
<p>$ vi app/models/oauth2_verifier.rb<br />
-&gt; Add: attr_accessible :client_application, :user, :scope, :callback_url</p>
<p>$ vi app/models/oauth2_token.rb<br />
-&gt; Add: attr_accessible :user, :client_application, :scope</p>
<p>Problem 3. Error in the OAuth 2 Authorize view.</p>
<p>#   undefined method `client_application&#8217; for nil:NilClass</p>
<p>$ vi app/views/oauth/oauth2_authorize.html.erb<br />
-&gt; Change all @token.client_application to @client_application</p>
<p>That&#8217;s all.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Rails and oauth-plugin part 1: the provider by Busy on Rails</title>
		<link>http://unhandledexpression.com/2011/06/02/rails-and-oauth-plugin-part-1-the-provider/#comment-349</link>
		<dc:creator><![CDATA[Busy on Rails]]></dc:creator>
		<pubDate>Tue, 15 May 2012 11:15:41 +0000</pubDate>
		<guid isPermaLink="false">http://unhandledexpression.com/?p=218#comment-349</guid>
		<description><![CDATA[Thanks Géal, I just have posts for mongoid based on your guide here: http://giangnd.wordpress.com/2012/05/15/rails-oauth-plugin-mongodb-part-1-provider/]]></description>
		<content:encoded><![CDATA[<p>Thanks Géal, I just have posts for mongoid based on your guide here: <a href="http://giangnd.wordpress.com/2012/05/15/rails-oauth-plugin-mongodb-part-1-provider/" rel="nofollow">http://giangnd.wordpress.com/2012/05/15/rails-oauth-plugin-mongodb-part-1-provider/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Rails and oauth-plugin part 2: the consumer by Rails + oauth-plugin + mongodb part 1: Provider &#124; Ruby on Rails freelancer</title>
		<link>http://unhandledexpression.com/2011/06/28/rails-and-oauth-plugin-part-2-the-consumer/#comment-348</link>
		<dc:creator><![CDATA[Rails + oauth-plugin + mongodb part 1: Provider &#124; Ruby on Rails freelancer]]></dc:creator>
		<pubDate>Tue, 15 May 2012 10:19:33 +0000</pubDate>
		<guid isPermaLink="false">http://unhandledexpression.com/?p=253#comment-348</guid>
		<description><![CDATA[[...] Recently I had a chance to work with Oauth and Rails using oauth-plugin and mongodb. Although oauth-plugin itself has a documentation but actually doesn&#8217;t cover the mongoid part detailed enough. Also I found this very good tutorial but it&#8217;s for SQLite3 only: Oauth Provider, Oauth Consumer [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Recently I had a chance to work with Oauth and Rails using oauth-plugin and mongodb. Although oauth-plugin itself has a documentation but actually doesn&#8217;t cover the mongoid part detailed enough. Also I found this very good tutorial but it&#8217;s for SQLite3 only: Oauth Provider, Oauth Consumer [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Rails and oauth-plugin part 1: the provider by Rails + oauth-plugin + mongodb part 1: Provider &#124; Ruby on Rails freelancer</title>
		<link>http://unhandledexpression.com/2011/06/02/rails-and-oauth-plugin-part-1-the-provider/#comment-347</link>
		<dc:creator><![CDATA[Rails + oauth-plugin + mongodb part 1: Provider &#124; Ruby on Rails freelancer]]></dc:creator>
		<pubDate>Tue, 15 May 2012 10:19:30 +0000</pubDate>
		<guid isPermaLink="false">http://unhandledexpression.com/?p=218#comment-347</guid>
		<description><![CDATA[[...] mongoid part detailed enough. Also I found this very good tutorial but it&#8217;s for SQLite3 only: Oauth Provider, Oauth [...]]]></description>
		<content:encoded><![CDATA[<p>[...] mongoid part detailed enough. Also I found this very good tutorial but it&#8217;s for SQLite3 only: Oauth Provider, Oauth [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Rails and oauth-plugin part 2: the consumer by knarasareddy</title>
		<link>http://unhandledexpression.com/2011/06/28/rails-and-oauth-plugin-part-2-the-consumer/#comment-345</link>
		<dc:creator><![CDATA[knarasareddy]]></dc:creator>
		<pubDate>Thu, 26 Apr 2012 14:31:05 +0000</pubDate>
		<guid isPermaLink="false">http://unhandledexpression.com/?p=253#comment-345</guid>
		<description><![CDATA[Pardon me if the question is too naive.
I followed the tutorial completely till &quot; creating the app/models/test_token.rb&quot; part. After that I was lost. We never wrote any migration for this model, yet we try to do @consumer_tokens=TestToken.all :conditions=&gt;{:user_id=&gt;current_user.id} in the welcome controller. 
I tried doing 
c = TestToken.new.client
c.get(&quot;/services/blocked_ips.json&quot;).body
but it gives me &quot;Invalid OAuth Request&quot;. can&#039;t figure out what exactly i missed. Any help is appreciated.]]></description>
		<content:encoded><![CDATA[<p>Pardon me if the question is too naive.<br />
I followed the tutorial completely till &#8221; creating the app/models/test_token.rb&#8221; part. After that I was lost. We never wrote any migration for this model, yet we try to do @consumer_tokens=TestToken.all :conditions=&gt;{:user_id=&gt;current_user.id} in the welcome controller.<br />
I tried doing<br />
c = TestToken.new.client<br />
c.get(&#8220;/services/blocked_ips.json&#8221;).body<br />
but it gives me &#8220;Invalid OAuth Request&#8221;. can&#8217;t figure out what exactly i missed. Any help is appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Rails and oauth-plugin part 1: the provider by Bob</title>
		<link>http://unhandledexpression.com/2011/06/02/rails-and-oauth-plugin-part-1-the-provider/#comment-344</link>
		<dc:creator><![CDATA[Bob]]></dc:creator>
		<pubDate>Sat, 14 Apr 2012 21:40:47 +0000</pubDate>
		<guid isPermaLink="false">http://unhandledexpression.com/?p=218#comment-344</guid>
		<description><![CDATA[I am having trouble with the last part of your bug fix. The part where I have to replace a line in a file in the gem&#039;s folder. I cannot find this folder, or a file that is named oauth_filter.rb.

Could you tell me where I can locate that file?

Thank you!]]></description>
		<content:encoded><![CDATA[<p>I am having trouble with the last part of your bug fix. The part where I have to replace a line in a file in the gem&#8217;s folder. I cannot find this folder, or a file that is named oauth_filter.rb.</p>
<p>Could you tell me where I can locate that file?</p>
<p>Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Rails and oauth-plugin part 1: the provider by Géal</title>
		<link>http://unhandledexpression.com/2011/06/02/rails-and-oauth-plugin-part-1-the-provider/#comment-343</link>
		<dc:creator><![CDATA[Géal]]></dc:creator>
		<pubDate>Tue, 13 Mar 2012 13:35:43 +0000</pubDate>
		<guid isPermaLink="false">http://unhandledexpression.com/?p=218#comment-343</guid>
		<description><![CDATA[AFAIK Twitter uses two-legged authorization. The method described here is for three-legged. What is your use case?]]></description>
		<content:encoded><![CDATA[<p>AFAIK Twitter uses two-legged authorization. The method described here is for three-legged. What is your use case?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

