Class

Rack::Auth::OpenIDAuth

Inheritance
< Rack::Auth::AbstractHandler < Object

A class developed out of the request to use OpenID as an authentication middleware. The request will be sent to the OpenID instance unless the block evaluates to true. For example in rackup, you can use it as such:

  use Rack::Session::Pool
  use Rack::Auth::OpenIDAuth, realm, openid_options do |env|
    env['rack.session'][:authkey] == a_string
  end
  run RackApp

Or simply:

  app = Rack::Auth::OpenIDAuth.new app, realm, openid_options, &auth

Attributes

Name Visibility R/W Description
oid public R

Methods

Class

Visibility Signature
public new (app, realm, options={}, &auth)

Instance

Visibility Signature
public call (env)

Class Method Detail

new(app, realm, options={}, &auth)

Instance Method Detail

call(env)