Skip to content

Commit

Permalink
Added short section for AX data requests
Browse files Browse the repository at this point in the history
  • Loading branch information
peat authored and josh committed Jan 12, 2009
1 parent eb3698d commit e2b2ae5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README
Expand Up @@ -214,5 +214,18 @@ You can support it in your app by changing #open_id_authentication
{ :login => 'nickname', :email => 'email', :display_name => 'fullname' }
end

Attribute Exchange OpenID Extension
===================================

Some OpenID providers also support the OpenID AX (attribute exchange) protocol for exchanging identity information between endpoints. See more: http://openid.net/specs/openid-attribute-exchange-1_0.html

Accessing AX data is very similar to the Simple Registration process, described above -- just add the URI identifier for the AX field to your :optional or :required parameters. For example:

authenticate_with_open_id(identity_url,
:required => [ :email, 'http://schema.openid.net/birthDate' ]) do |result, identity_url, registration|

This would provide the sreg data for :email, and the AX data for 'http://schema.openid.net/birthDate'



Copyright (c) 2007 David Heinemeier Hansson, released under the MIT license

0 comments on commit e2b2ae5

Please sign in to comment.