Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/atmos/hancock-client
A sinatra app and rack middleware piece for the hancock SSO server
https://github.com/atmos/hancock-client
Last synced: 26 days ago
JSON representation
A sinatra app and rack middleware piece for the hancock SSO server
- Host: GitHub
- URL: https://github.com/atmos/hancock-client
- Owner: atmos
- License: mit
- Created: 2009-03-04T17:46:38.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2009-12-07T00:08:15.000Z (almost 15 years ago)
- Last Synced: 2024-05-14T04:02:07.446Z (6 months ago)
- Language: Ruby
- Homepage:
- Size: 134 KB
- Stars: 3
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-sinatra - hancock-client - A sinatra app and rack middleware piece for the hancock SSO server (Authentication)
README
hancock-client
==============A gem that integrates [sinatra][sinatra] applications into the
[Hancock SSO][hancocksso] environment. It also doubles as rack middleware that
can be used in rails(>= 2.3.2) and sinatra applications.Dependencies
============
% sudo gem install bundlertesting
=======
Rake works for basic stuff, there's safariwatir for integration.% gem bundle
% bin/rakeFor 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/)
endget '/' do
haml(:home)
end
end
run HancockClientDemoFeedback
========
* Use the Issues Page on Github for Questions[sinatra]: http://www.sinatrarb.com
[hancocksso]: http://www.github.com/atmos/hancock/