<?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: 8 Steps to your first OpenID enabled app</title>
	<atom:link href="http://leancode.com/2007/03/07/8-steps-to-your-first-openid-enabled-app/feed/" rel="self" type="application/rss+xml" />
	<link>http://leancode.com/2007/03/07/8-steps-to-your-first-openid-enabled-app/</link>
	<description>bernie's small batches of software goodness</description>
	<lastBuildDate>Fri, 06 Jan 2012 12:30:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Bernie Thompson</title>
		<link>http://leancode.com/2007/03/07/8-steps-to-your-first-openid-enabled-app/comment-page-1/#comment-1377</link>
		<dc:creator>Bernie Thompson</dc:creator>
		<pubDate>Mon, 19 Mar 2007 04:31:34 +0000</pubDate>
		<guid isPermaLink="false">http://leancode.com/2007/03/07/8-steps-to-your-first-openid-enabled-app/#comment-1377</guid>
		<description>Hi Donovan, 

I&#039;ve only been using the nickname &amp; email sreg info, so I&#039;m not sure whether all providers handle the others.

Do you have a test account on the openid provider, with the data you&#039;re looking for in the profile?
Are you (2) letting the provider who which sreg params are optional/requred in your begin() method? 

&lt;code&gt;&lt;pre&gt;
def add_simple_registration_fields(open_id_response, fields) 
  open_id_response.add_extension_arg(&#039;sreg&#039;, &#039;required&#039;, [ fields[:required] ].flatten * &#039;,&#039;) if fields[:required]  
  open_id_response.add_extension_arg(&#039;sreg&#039;, &#039;optional&#039;, [ fields[:optional] ].flatten * &#039;,&#039;) if fields[:optional]
end
&lt;/pre&gt;&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Hi Donovan, </p>
<p>I&#8217;ve only been using the nickname &#038; email sreg info, so I&#8217;m not sure whether all providers handle the others.</p>
<p>Do you have a test account on the openid provider, with the data you&#8217;re looking for in the profile?<br />
Are you (2) letting the provider who which sreg params are optional/requred in your begin() method? </p>
<p><code>
<pre>
def add_simple_registration_fields(open_id_response, fields)
  open_id_response.add_extension_arg('sreg', 'required', [ fields[:required] ].flatten * ',') if fields[:required]
  open_id_response.add_extension_arg('sreg', 'optional', [ fields[:optional] ].flatten * ',') if fields[:optional]
end
</pre>
<p></code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Donovan Dillon</title>
		<link>http://leancode.com/2007/03/07/8-steps-to-your-first-openid-enabled-app/comment-page-1/#comment-1367</link>
		<dc:creator>Donovan Dillon</dc:creator>
		<pubDate>Mon, 19 Mar 2007 01:06:47 +0000</pubDate>
		<guid isPermaLink="false">http://leancode.com/2007/03/07/8-steps-to-your-first-openid-enabled-app/#comment-1367</guid>
		<description>Thanks.  This is just what I needed.  However, I&#039;m having problems with Simple Registration Extension.  My code executes without errors; but only returns the sreg.email field, and none of the others (e.g., sreg.gender, sreg.postcode, etc).  I&#039;m using MyOpenID.com as the provider as they&#039;ve announced support for sreg.  Here&#039;s the code segment openid_account_controller/complete method:

      # create user object if one does not exist
      if @user.nil?
        registration_info = response.extension_response(&#039;sreg&#039;)
        @user = User.new(:openid_url =&gt; response.identity_url)
        @user.email = registration_info[&#039;email&#039;]
        @user.gender = registration_info[&#039;gender&#039;]
        @user.save
      end

Any idea what&#039;s causing the problem?  Thx.</description>
		<content:encoded><![CDATA[<p>Thanks.  This is just what I needed.  However, I&#8217;m having problems with Simple Registration Extension.  My code executes without errors; but only returns the sreg.email field, and none of the others (e.g., sreg.gender, sreg.postcode, etc).  I&#8217;m using MyOpenID.com as the provider as they&#8217;ve announced support for sreg.  Here&#8217;s the code segment openid_account_controller/complete method:</p>
<p>      # create user object if one does not exist<br />
      if @user.nil?<br />
        registration_info = response.extension_response(&#8216;sreg&#8217;)<br />
        @user = User.new(:openid_url =&gt; response.identity_url)<br />
        @user.email = registration_info['email']<br />
        @user.gender = registration_info['gender']<br />
        @user.save<br />
      end</p>
<p>Any idea what&#8217;s causing the problem?  Thx.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daryl Fritz</title>
		<link>http://leancode.com/2007/03/07/8-steps-to-your-first-openid-enabled-app/comment-page-1/#comment-995</link>
		<dc:creator>Daryl Fritz</dc:creator>
		<pubDate>Wed, 07 Mar 2007 18:53:44 +0000</pubDate>
		<guid isPermaLink="false">http://leancode.com/2007/03/07/8-steps-to-your-first-openid-enabled-app/#comment-995</guid>
		<description>&quot;rails your_app -d sqlite3; cd your_app&quot;
^ That&#039;s cheating, it&#039;s two steps... ;-)

Thanks, I look forward to trying this.</description>
		<content:encoded><![CDATA[<p>&#8220;rails your_app -d sqlite3; cd your_app&#8221;<br />
^ That&#8217;s cheating, it&#8217;s two steps&#8230; <img src='http://leancode.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Thanks, I look forward to trying this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: links for 2007-03-07 » OpenID Planet</title>
		<link>http://leancode.com/2007/03/07/8-steps-to-your-first-openid-enabled-app/comment-page-1/#comment-986</link>
		<dc:creator>links for 2007-03-07 » OpenID Planet</dc:creator>
		<pubDate>Wed, 07 Mar 2007 15:23:27 +0000</pubDate>
		<guid isPermaLink="false">http://leancode.com/2007/03/07/8-steps-to-your-first-openid-enabled-app/#comment-986</guid>
		<description>[...] Leancode » 8 Steps to your first OpenID enabled app openid_login_generator isn’t the only game in town for creating an OpenID-enabled Rails application, and it’s certainly not the best for real-world apps. But it is the simplest. The generator doesn’t even generate migrations for you, yet it’s only [...]</description>
		<content:encoded><![CDATA[<p>[...] Leancode » 8 Steps to your first OpenID enabled app openid_login_generator isn’t the only game in town for creating an OpenID-enabled Rails application, and it’s certainly not the best for real-world apps. But it is the simplest. The generator doesn’t even generate migrations for you, yet it’s only [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.369 seconds -->

