214df6299e12261efa64f63856e90747daf9e6b7
3 # Rack::Auth::AbstractHandler implements common authentication functionality.
5 # +realm+ should be set for all handlers.
11 def initialize(app
, realm
=nil, &authenticator
)
12 @app, @realm, @authenticator = app
, realm
, authenticator
18 def unauthorized(www_authenticate
= challenge
)
20 { 'Content-Type' => 'text/plain',
21 'Content-Length' => '0',
22 'WWW-Authenticate' => www_authenticate
.to_s
},
29 { 'Content-Type' => 'text/plain',
30 'Content-Length' => '0' },