Registry / auth / rack-openid

rack-openid

JSON →
library1.4.2rbrubygemsunverified

Provides a more HTTPish API around the ruby-openid library for OpenID authentication in Rack applications.

gem install rack-openid
INSTALL
IMPORT
SIG · RACK-OPENID
R
rack-openid
authrubyv1.4.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Rack
require 'rack/openid'

Add OpenID authentication middleware to a Rack app.

require 'rack/openid' use Rack::OpenID app = proc do |env| if req = env['rack.openid.response'] [200, {}, ["Hello #{req.identity}"]] else [401, {}, ['Not authorized']] end end run app
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.4.2latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
25 hits · last 30 days
node
22
Amazon
1
Resources
rack-openid — gem install rack-openid · libregistry