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:
dbloete (author)
Fri May 02 15:16:26 -0700 2008
commit  862efee2401a4b029f39c69004556ce87402c0c4
tree    e170f8a8ad535ae766298dd7f192b9c7fb0d0a0c
parent  3f7b3c65dfcec3d5b6596b9affcbd26d5659b668
masquerade / config / routes.rb
100644 54 lines (44 sloc) 1.953 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
ActionController::Routing::Routes.draw do |map|
 
  map.resource :account,
    :member => { :activate => :get, :password => :get, :change_password => :put } do |account|
    account.resources :personas do |personas|
      personas.resources :properties
    end
    account.resources :sites do |sites|
      sites.resources :release_policies
    end
  end
  
  map.resource :session
  map.resource :password
  
  map.with_options :controller => 'passwords' do |pwd|
    pwd.forgot_password 'forgot_password', :action => 'new'
    pwd.reset_password 'reset_password/:id', :action => 'edit'
  end
  
  map.with_options :controller => 'sessions' do |sessions|
    sessions.login 'login', :action => 'new'
    sessions.logout 'logout', :action => 'destroy'
  end
  
  map.with_options :controller => 'server' do |server|
    server.formatted_server 'server.:format', :action => 'index'
    server.server 'server', :action => 'index'
    server.decide 'server/decide', :action => 'decide'
    server.proceed 'server/proceed', :action => 'proceed'
    server.complete 'server/complete', :action => 'complete'
    server.cancel 'server/cancel', :action => 'cancel'
    server.formatted_seatbelt_config 'server/seatbelt/config.:format', :action => 'seatbelt_config'
    server.formatted_seatbelt_state 'server/seatbelt/state.:format', :action => 'seatbelt_login_state'
  end
 
  map.with_options :controller => 'consumer' do |consumer|
    consumer.consumer 'consumer', :action => 'index'
    consumer.consumer_start 'consumer/start', :action => 'start'
    consumer.consumer_complete 'consumer/complete', :action => 'complete'
  end
 
  map.with_options :controller => 'info' do |info|
    info.home '', :action => 'index'
    info.help 'help', :action => 'help'
  end
  
  map.with_options :controller => 'accounts' do |account|
    account.formatted_identity ':account.:format', :action => 'show'
    account.identity ':account', :action => 'show'
  end
  
end