github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

atmos / hancock-client

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 44
    • 4
  • Source
  • Commits
  • Network (4)
  • Issues (1)
  • Downloads (6)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (6)
    • v0.0.8
    • v0.0.7
    • v0.0.6
    • v0.0.5
    • v0.0.4
    • v0.0.3
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

A sinatra app and rack middleware piece for the hancock SSO server — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

first pass at having the hancock client do middleware and API level stuff, 
more to come 
Corey Donohoe (author)
Sun Dec 06 16:08:07 -0800 2009
commit  095955b6402c30ef24520bafdb8a8687df0a98d3
tree    6f27ba2f7c277709f254438023621ae6d173b727
parent  31244e7fda11017d832ac1a3a92de3df4184d142
hancock-client / examples / dragon / config.ru examples/dragon/config.ru
100644 20 lines (14 sloc) 0.54 kb
edit raw blame history
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
 
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server