<?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 on: How to integrate Clickpass (and OpenID) with a Rails app</title>
	<atom:link href="http://blog.yangtheman.com/2009/09/17/how-to-integrate-clickpass-or-openid-with-a-rails-app/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.yangtheman.com/2009/09/17/how-to-integrate-clickpass-or-openid-with-a-rails-app/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-integrate-clickpass-or-openid-with-a-rails-app</link>
	<description>Life hacker</description>
	<lastBuildDate>Fri, 28 May 2010 12:51:23 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Robert</title>
		<link>http://blog.yangtheman.com/2009/09/17/how-to-integrate-clickpass-or-openid-with-a-rails-app/comment-page-1/#comment-227</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Sun, 18 Oct 2009 05:00:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.yangtheman.com/?p=92#comment-227</guid>
		<description>Very good tutorial, I used it to provide clickpass  to project eureka.

On a second note, couple of changes I needed to do(i present them here in case more ppl are using it), here are my diffs:

 redirect_to &quot;#{params[:clickpass_merge_callback_url]}?userid_authenticated=false&quot; =&gt; there is a typo here it should be &quot;&amp;&quot; instead of &quot;?&quot;

Also for new users instead of redirecting them new_session_url(when userid or email is taken) I prefer to redirect them to clickpass:

def openid_reg
      if user=User.find_by_login(params[:nickname]) &#124;&#124; user=User.find_by_email(params[:email])
         redirect_to &quot;#{REDIRECT}&amp;registration_succeeded=false&amp;nickname_error=Username%20invalid%20or%20taken&quot;
         return
....</description>
		<content:encoded><![CDATA[<p>Very good tutorial, I used it to provide clickpass  to project eureka.</p>
<p>On a second note, couple of changes I needed to do(i present them here in case more ppl are using it), here are my diffs:</p>
<p> redirect_to &#8220;#{params[:clickpass_merge_callback_url]}?userid_authenticated=false&#8221; =&gt; there is a typo here it should be &#8220;&amp;&#8221; instead of &#8220;?&#8221;</p>
<p>Also for new users instead of redirecting them new_session_url(when userid or email is taken) I prefer to redirect them to clickpass:</p>
<p>def openid_reg<br />
      if user=User.find_by_login(params[:nickname]) || user=User.find_by_email(params[:email])<br />
         redirect_to &#8220;#{REDIRECT}&amp;registration_succeeded=false&amp;nickname_error=Username%20invalid%20or%20taken&#8221;<br />
         return<br />
&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Clickpass &#187; Blog Archive &#187; New Rails Tutorial on installing Clickpass</title>
		<link>http://blog.yangtheman.com/2009/09/17/how-to-integrate-clickpass-or-openid-with-a-rails-app/comment-page-1/#comment-81</link>
		<dc:creator>Clickpass &#187; Blog Archive &#187; New Rails Tutorial on installing Clickpass</dc:creator>
		<pubDate>Tue, 22 Sep 2009 17:01:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.yangtheman.com/?p=92#comment-81</guid>
		<description>[...] One of our Cickpass user/developer recently posted a great step-by-step article on how to setup Clickpass using Rails at his blog: YangTheMan. [...]</description>
		<content:encoded><![CDATA[<p>[...] One of our Cickpass user/developer recently posted a great step-by-step article on how to setup Clickpass using Rails at his blog: YangTheMan. [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
