We got nominated! Help us out and vote for GitHub as Best Bootstrapped Startup of 2008. (You can vote once a day.) [ hide ]

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 !
commit  9e4fee16d3b1c5e1d80f6efe574375cd8fd84f3a
tree    e3167edb4be20af35e9b3a1b0580060b88443768
parent  39317c6e9ac42c2ae8ad777b404f0c07ee68b74e
masquerade / app / views / accounts / show.xrds.builder
100644 30 lines (29 sloc) 0.978 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
xml.instruct!
xml.xrds(:XRDS,
  'xmlns:openid' => OpenID::OPENID_1_0_NS,
  'xmlns:xrds' => 'xri://$xrds',
  'xmlns' => 'xri://$xrd*($v*2.0)') do
  xml.XRD do
    xml.Service(:priority => 1) do
      xml.Type OpenID::OPENID_2_0_TYPE
      xml.Type OpenID::SReg::NS_URI_1_1
      xml.Type OpenID::SReg::NS_URI_1_0
      xml.URI endpoint_url
      xml.LocalID identity_url(:account => @account, :protocol => scheme)
    end
    xml.Service(:priority => 2) do
      xml.Type OpenID::OPENID_1_1_TYPE
      xml.Type OpenID::SReg::NS_URI_1_1
      xml.Type OpenID::SReg::NS_URI_1_0
      xml.URI endpoint_url
      xml.tag!('openid:Delegate', identity_url(:account => @account, :protocol => scheme))
    end
    xml.Service(:priority => 3) do
      xml.Type OpenID::OPENID_1_0_TYPE
      xml.Type OpenID::SReg::NS_URI_1_1
      xml.Type OpenID::SReg::NS_URI_1_0
      xml.URI endpoint_url
      xml.tag!('openid:Delegate', identity_url(:account => @account, :protocol => scheme))
    end
  end
end