public
Description: A Ruby on Rails-based OpenID server for all ya identity providers out there. It is pretty close to the current OpenID specifications and supports SReg, AX (only fetch requests, yet) and PAPE
Homepage: http://dennisbloete.de/projects/masquerade/
Clone URL: git://github.com/dbloete/masquerade.git
Click here to lend your support to: masquerade and make a donation at www.pledgie.com !
OpenID 1.x compatibility additions and further changes to the xrds 
templates
dbloete (author)
Sun Apr 20 01:13:22 -0700 2008
commit  9e4fee16d3b1c5e1d80f6efe574375cd8fd84f3a
tree    e3167edb4be20af35e9b3a1b0580060b88443768
parent  39317c6e9ac42c2ae8ad777b404f0c07ee68b74e
...
10
11
12
13
14
15
16
 
17
18
19
...
10
11
12
 
 
 
 
13
14
15
16
0
@@ -10,10 +10,7 @@ class AccountsController < ApplicationController
0
       format.html do
0
         response.headers['X-XRDS-Location'] = formatted_identity_url(:account => @account, :format => :xrds, :protocol => scheme)
0
       end
0
- format.xrds do
0
- @types = [ OpenID::OPENID_2_0_TYPE, OpenID::OPENID_1_0_TYPE, OpenID::SREG_URI ]
0
- render :template => 'server/index'
0
- end
0
+ format.xrds
0
     end
0
   end
0
   
...
27
28
29
30
 
31
32
33
...
27
28
29
 
30
31
32
33
0
@@ -27,7 +27,7 @@ class ServerController < ApplicationController
0
           render :text => 'This is an OpenID server endpoint, not a human readable resource.'
0
         end
0
       end
0
- format.xrds { @types = [ OpenID::OPENID_IDP_2_0_TYPE ] }
0
+ format.xrds
0
     end
0
   end
0
   
...
1
2
 
 
 
 
3
4
5
6
 
 
 
 
7
8
9
10
...
1
 
2
3
4
5
6
7
 
 
8
9
10
11
12
13
14
15
0
@@ -1,9 +1,14 @@
0
 xml.instruct!
0
-xml.xrds(:XRDS, 'xmlns:xrds' => 'xri://$xrds', 'xmlns' => 'xri://$xrd*($v*2.0)') do
0
+xml.xrds(:XRDS,
0
+ 'xmlns:openid' => OpenID::OPENID_1_0_NS,
0
+ 'xmlns:xrds' => 'xri://$xrds',
0
+ 'xmlns' => 'xri://$xrd*($v*2.0)') do
0
   xml.XRD do
0
     xml.Service(:priority => 1) do
0
- @types.each { |type| xml.Type type }
0
- xml.URI server_url
0
+ xml.Type OpenID::OPENID_IDP_2_0_TYPE
0
+ xml.Type OpenID::SReg::NS_URI_1_1
0
+ xml.Type OpenID::SReg::NS_URI_1_0
0
+ xml.URI endpoint_url
0
     end
0
   end
0
 end
0
\ No newline at end of file
...
4
5
6
 
7
8
...
4
5
6
7
8
9
0
@@ -4,4 +4,5 @@ require 'openid'
0
 require 'openid/consumer/discovery'
0
 require 'openid/extensions/sreg'
0
 require 'openid/extensions/pape'
0
+require 'openid/extensions/ax'
0
 require 'openid_server_system'
0
\ No newline at end of file

Comments

    No one has commented yet.