Skip to content
/ hancock Public

hancock is an OpenID based Single Sign On provider written in Sinatra.

License

Notifications You must be signed in to change notification settings

b/hancock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hancock

It's like your John Hancock for all of your company's apps.

A lot of this is extracted from our internal single sign on server at Engine Yard. We use a different datamapper backend but it should be a decent start for most people.

Features

An OpenID based Single Sign On server that provides:

  • a whitelist for consumers
  • integration with the big ruby frameworks(rails,merb,sinatra)
  • sreg parameters to consumers(first name, last name, email, identity_url)

How it Works

SSO Handshake

This handshake seems kind of complex but it only happens when you need to validate a user session on the consumer.

Installation

% gem sources
*** CURRENT SOURCES ***

http://gems.rubyforge.org/
http://gems.engineyard.com
http://gems.github.com

You need a few gems to function

% sudo gem install dm-core do_sqlite3
% sudo gem install sinatra guid rspec ruby-openid

You need a few more to test, including sr's fork of webrat % sudo gem install selenium-client rspec % git clone git://github.com/sr/webrat.git % cd webrat % git checkout -b sinatra origin/sinatra % rake repackage % sudo gem uninstall -aI webrat % sudo gem install pkg/webrat-0.4.2.gem

Plans

  • configurable sreg parameters to consumers
  • signup with email based validation
  • single sign off
  • some kinda awesome oauth hooks
  • simpledb integration, srsly

Sponsored By

About

hancock is an OpenID based Single Sign On provider written in Sinatra.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published