This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit 48b6a314775a12787410b22bbdafd8d02fe79b50
tree 7c9827a52ae341bc5db05cac2231acb8746cec9f
parent d51ba5e8b35336768ca49ec4a5e5bbd6bf3e1fbe
tree 7c9827a52ae341bc5db05cac2231acb8746cec9f
parent d51ba5e8b35336768ca49ec4a5e5bbd6bf3e1fbe
| name | age | message | |
|---|---|---|---|
| |
.gitignore | ||
| |
Gemfile | ||
| |
LICENSE | Wed Mar 04 09:47:31 -0800 2009 | |
| |
README.md | ||
| |
Rakefile | ||
| |
examples/ | ||
| |
features/ | ||
| |
lib/ | ||
| |
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
Application
The goal is to make it simple to write sso enabled apps.
require 'rubygems'
require 'hancock-client'
require 'logger'
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








