<?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"
	>
<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>small batches of software goodness</description>
	<pubDate>Mon, 08 Sep 2008 13:50:53 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Bernie Thompson</title>
		<link>http://leancode.com/2007/03/07/8-steps-to-your-first-openid-enabled-app/#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've only been using the nickname &#038; email sreg info, so I'm not sure whether all providers handle the others.

Do you have a test account on the openid provider, with the data you'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('sreg', 'required', [ fields[:required] ].flatten * ',') if fields[:required]  
  open_id_response.add_extension_arg('sreg', 'optional', [ fields[:optional] ].flatten * ',') 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 * &#8216;,&#8217;) if fields[:required]
  open_id_response.add_extension_arg(&#8217;sreg&#8217;, &#8216;optional&#8217;, [ fields[:optional] ].flatten * &#8216;,&#8217;) 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-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'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'm using MyOpenID.com as the provider as they've announced support for sreg.  Here'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('sreg')
        @user = User.new(:openid_url =&#62; response.identity_url)
        @user.email = registration_info['email']
        @user.gender = registration_info['gender']
        @user.save
      end

Any idea what'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(&#8217;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-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>"rails your_app -d sqlite3; cd your_app"
^ That's cheating, it'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-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.349 seconds -->
