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 | |
|---|---|---|---|
| |
.gitignore | ||
| |
MIT-LICENSE | Sun Dec 14 13:52:34 -0800 2008 | |
| |
README.rdoc | Mon Dec 15 21:28:15 -0800 2008 | |
| |
Rakefile | ||
| |
examples/ | ||
| |
lib/ | ||
| |
rack-openid.gemspec | ||
| |
test/ |
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 completition, 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 identity="http://example.com/"'}, []]
end
}
use Rack::OpenID
run MyApp








