diff options
Diffstat (limited to 'actionpack/lib/action_controller/vendor/rack-0.4.0/rack/auth/abstract/handler.rb')
-rw-r--r-- | actionpack/lib/action_controller/vendor/rack-0.4.0/rack/auth/abstract/handler.rb | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/actionpack/lib/action_controller/vendor/rack-0.4.0/rack/auth/abstract/handler.rb b/actionpack/lib/action_controller/vendor/rack-0.4.0/rack/auth/abstract/handler.rb deleted file mode 100644 index b213eac6f4..0000000000 --- a/actionpack/lib/action_controller/vendor/rack-0.4.0/rack/auth/abstract/handler.rb +++ /dev/null @@ -1,28 +0,0 @@ -module Rack - module Auth - # Rack::Auth::AbstractHandler implements common authentication functionality. - # - # +realm+ should be set for all handlers. - - class AbstractHandler - - attr_accessor :realm - - def initialize(app, &authenticator) - @app, @authenticator = app, authenticator - end - - - private - - def unauthorized(www_authenticate = challenge) - return [ 401, { 'WWW-Authenticate' => www_authenticate.to_s }, [] ] - end - - def bad_request - [ 400, {}, [] ] - end - - end - end -end |