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
Search Repo:
Added support for versigns seatbelt plugin
dbloete (author)
Fri May 02 15:16:26 -0700 2008
commit  862efee2401a4b029f39c69004556ce87402c0c4
tree    e170f8a8ad535ae766298dd7f192b9c7fb0d0a0c
parent  3f7b3c65dfcec3d5b6596b9affcbd26d5659b668
...
6
7
8
9
10
 
 
11
12
13
...
6
7
8
 
 
9
10
11
12
13
0
@@ -6,8 +6,8 @@
0
   # Error handling
0
   rescue_from OpenID::Server::ProtocolError, :with => :render_openid_error
0
   # Actions other than index require a logged in user
0
- before_filter :login_required, :except => [:index, :cancel]
0
- before_filter :ensure_valid_checkid_request, :except => [:index, :cancel]
0
+ before_filter :login_required, :except => [:index, :cancel, :seatbelt_config, :seatbelt_login_state]
0
+ before_filter :ensure_valid_checkid_request, :except => [:index, :cancel, :seatbelt_config, :seatbelt_login_state]
0
   before_filter :clear_checkid_request, :only => [:index]
0
   after_filter :clear_checkid_request, :only => [:cancel, :complete]
0
   # These methods are used to display information about the request to the user
...
7
8
9
 
10
11
12
...
7
8
9
10
11
12
13
0
@@ -7,6 +7,7 @@
0
     <meta http-equiv="X-XRDS-Location" content="<%= formatted_identity_path(@account, :xrds) %>" />
0
     <link rel="openid.server openid2.provider" href="<%= formatted_server_path(:xrds) %>" />
0
     <% end %>
0
+ <link rel="seatbelt.config" type="application/xml" href="<%= formatted_seatbelt_config_url(:xml) %>" />
0
     <link rel="Shortcut Icon" href="/favicon.ico" type="image/x-icon" />
0
     <link rel="icon" href="/favicon.ico" type="image/ico" />
0
     <%= stylesheet_link_tag 'application' %>
...
 
 
 
 
 
 
 
 
 
 
 
 
...
1
2
3
4
5
6
7
8
9
10
11
12
0
@@ -1 +1,13 @@
0
+xml.instruct!
0
+xml.opConfig(:version => '1.0') do
0
+ xml.configRevision('2008050101')
0
+ xml.title(APP_CONFIG['name'])
0
+ xml.serverIdentifier(endpoint_url)
0
+ xml.opDomain(APP_CONFIG['host'])
0
+ xml.opCertCommonName(APP_CONFIG['ssl_certificate_common_name']) if APP_CONFIG['use_ssl']
0
+ xml.opCertSHA1Hash(APP_CONFIG['ssl_certificate_sha1']) if APP_CONFIG['use_ssl']
0
+ xml.loginUrl(login_url)
0
+ xml.welcomeUrl(home_url)
0
+ xml.loginStateUrl(formatted_seatbelt_state_url(:xml))
0
+end
...
 
 
 
 
...
1
2
3
4
0
@@ -1 +1,5 @@
0
+xml.instruct!
0
+xml.personaConfig(:serverIdentifier => endpoint_url, :version => '1.0') do
0
+ xml.persona(identifier(current_account)) if logged_in?
0
+end
...
21
22
23
 
 
...
21
22
23
24
25
0
@@ -21,4 +21,6 @@
0
 production:
0
   <<: *default
0
   use_ssl: true
0
+ ssl_certificate_common_name: your.domain.com
0
+ ssl_certificate_sha1: D2:1B:D8:C4:39:B7:EE:10:DA:E2:4E:0A:65:98:8E:27:C9:32:4B:F0
...
30
31
32
 
 
33
34
35
...
30
31
32
33
34
35
36
37
0
@@ -30,6 +30,8 @@
0
     server.proceed 'server/proceed', :action => 'proceed'
0
     server.complete 'server/complete', :action => 'complete'
0
     server.cancel 'server/cancel', :action => 'cancel'
0
+ server.formatted_seatbelt_config 'server/seatbelt/config.:format', :action => 'seatbelt_config'
0
+ server.formatted_seatbelt_state 'server/seatbelt/state.:format', :action => 'seatbelt_login_state'
0
   end
0
 
0
   map.with_options :controller => 'consumer' do |consumer|

Comments

    No one has commented yet.