0.0
No commit activity in last 3 years
No release in over 3 years
Hancock SSO rack middleware written in sinatra
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

~> 2.0.9
~> 2.1.6
~> 0.9.2
 Project Readme

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