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 (
| name | age | message | |
|---|---|---|---|
| |
LICENSE | Sun Dec 14 13:52:34 -0800 2008 | |
| |
README.rdoc | Mon Nov 16 11:54:30 -0800 2009 | |
| |
Rakefile | Sun Nov 29 10:18:32 -0800 2009 | |
| |
deps.rip | Sun Aug 23 20:24:26 -0700 2009 | |
| |
examples/ | Sun Nov 29 10:15:36 -0800 2009 | |
| |
lib/ | Sun Nov 29 10:47:10 -0800 2009 | |
| |
rack-openid.gemspec | Sun Nov 29 10:56:44 -0800 2009 | |
| |
test/ | Sun Nov 29 10:55:55 -0800 2009 | |
| |
tmp/ | Tue Sep 08 16:06:00 -0700 2009 |
README.rdoc
Rack::OpenID
Provides a more HTTPish API around the ruby-openid library.
Usage
You trigger an OpenID request similar to HTTP authentication. From your app, return a "401 Unauthorized" and a "WWW-Authenticate" header with the identifier you would like to validate.
On competition, the OpenID response is automatically verified and assigned to env.
MyApp = lambda { |env|
if resp = env["rack.openid.response"]
case resp.status
when :success
...
when :failure
...
else
[401, {"WWW-Authenticate" => 'OpenID identifier="http://example.com/"'}, []]
end
}
use Rack::OpenID
run MyApp







