github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

josh / rack-openid

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 80
    • 8
  • Source
  • Commits
  • Network (8)
  • Issues (0)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (5)
    • v0.2.3
    • v0.2.2
    • v0.2.1
    • v0.2.0
    • v0.1.0
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Provides a more HTTPish API around the ruby-openid library — Read more

  cancel

http://rdoc.info/projects/josh/rack-openid/

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

0.2.3 release 
josh (author)
Sat Feb 06 06:19:20 -0800 2010
commit  c0414ef4e2d9c4f916763abbaa1b738b06cec8bb
tree    d8908b287e9988e69be6143258048cf2c1b90f31
parent  d7228d259ad8fbbd5a2b847ffd561bf0a2dc5fdf
rack-openid /
name age
history
message
file LICENSE Fri Oct 02 15:18:55 -0700 2009 rename to just LICENSE [josh]
file README.rdoc Mon Nov 16 11:54:30 -0800 2009 prefer identifier over identity [josh]
file Rakefile Sun Nov 29 10:18:32 -0800 2009 no mg [josh]
directory examples/ Sun Nov 29 10:15:36 -0800 2009 remove memcache store from sinatra example [josh]
directory lib/ Fri Feb 05 23:54:04 -0800 2010 allow normal HTTP basic auth to passthrough [bzoller]
file rack-openid.gemspec Sat Feb 06 06:19:20 -0800 2010 0.2.3 release [josh]
directory test/ Sat Feb 06 06:18:39 -0800 2010 remove test deps [josh]
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
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server