Update open_id_authentication to 079b91f70602814c98d4345e198f743bb56b76b5

This commit is contained in:
Eric Allen 2009-12-07 18:21:49 -05:00
parent 144e74682b
commit ac0ff3feaf
8 changed files with 109 additions and 246 deletions

View file

@ -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