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 /
name age
history
message
file .gitignore Loading commit data...
file Gemfile
file LICENSE
file README.md
file Rakefile
directory examples/
directory features/
directory lib/
directory spec/
README.md

hancock-client

A gem that integrates sinatra applications into the Hancock SSO environment. It also doubles as rack middleware that can be used in rails(>= 2.3.2) and sinatra applications.

Dependencies

% sudo gem install bundler

testing

Rake works for basic stuff, there's safariwatir for integration.

% gem bundle
% bin/rake

For the integration tests you'll need to be on a mac,

% bin/rake example

Application

The goal is to make it simple to write sso enabled apps.

require 'hancock-client'

class HancockClientDemo < Sinatra::Default
  set :views,  File.dirname(__FILE__) + '/views'
  set :public, File.dirname(__FILE__) + '/public'

  use Hancock::Client::Middleware do |sso|
    sso.sso_url = 'http://hancock.atmos.org/sso'
    sso.exclude_paths = %w(/api/)
  end

  get '/' do
    haml(:home)
  end
end
run HancockClientDemo

Feedback

  • Use the Issues Page on Github for Questions
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