Parent

Class Index [+]

Quicksearch

Rack::Auth::AbstractHandler

Rack::Auth::AbstractHandler implements common authentication functionality.

realm should be set for all handlers.

Attributes

realm[RW]

(Not documented)

Public Class Methods

new(app, realm=nil, &authenticator) click to toggle source

(Not documented)

    # File lib/rack/auth/abstract/handler.rb, line 11
11:       def initialize(app, realm=nil, &authenticator)
12:         @app, @realm, @authenticator = app, realm, authenticator
13:       end

Private Instance Methods

bad_request() click to toggle source

(Not documented)

    # File lib/rack/auth/abstract/handler.rb, line 27
27:       def bad_request
28:         return [ 400,
29:           { 'Content-Type' => 'text/plain',
30:             'Content-Length' => '0' },
31:           []
32:         ]
33:       end
unauthorized(www_authenticate = challenge) click to toggle source

(Not documented)

    # File lib/rack/auth/abstract/handler.rb, line 18
18:       def unauthorized(www_authenticate = challenge)
19:         return [ 401,
20:           { 'Content-Type' => 'text/plain',
21:             'Content-Length' => '0',
22:             'WWW-Authenticate' => www_authenticate.to_s },
23:           []
24:         ]
25:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.