public
Description: A sinatra app and rack middleware piece for the hancock SSO server
Homepage:
Clone URL: git://github.com/atmos/hancock-client.git
hancock-client / examples / dragon / config.ru
100644 20 lines (14 sloc) 0.54 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'vendor', 'gems', 'environment'))
require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'lib', 'hancock-client'))
 
class HancockClientDemo < Sinatra::Default
  set :views, File.dirname(__FILE__)+'/views'
  set :public, File.dirname(__FILE__)+'/public'
 
  include Hancock::Client::Helpers::Rack
 
  use Hancock::Client::Middleware do |sso|
    sso.sso_url = 'http://hancock.atmos.org'
  end
 
  get '/' do
    haml(:home)
  end
end
 
run HancockClientDemo