Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
An OpenID Provider with a simple API, written in Sinatra.
Ruby
tree: 0f2fc9d3ab

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
examples/dragon
lib
spec
.gitignore
AUTHORS
LICENSE
README.md
Rakefile
hancock.graffle

README.md

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
  • integrate 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

Something went wrong with that request. Please try again.