Class: MAuth::Rack::RequestAuthenticatorNoAppStatus

Inherits:
RequestAuthenticator show all
Defined in:
lib/mauth/rack.rb

Overview

same as MAuth::Rack::RequestAuthenticator, but does not authenticate /app_status

Instance Method Summary collapse

Methods inherited from RequestAuthenticator

#call, #handle_head, #response_for_inauthentic_request, #response_for_unable_to_authenticate

Methods inherited from Middleware

#initialize, #mauth_client

Constructor Details

This class inherits a constructor from MAuth::Middleware

Instance Method Details

#should_authenticate?(env) ⇒ Boolean

Returns:

  • (Boolean)


68
69
70
# File 'lib/mauth/rack.rb', line 68

def should_authenticate?(env)
  env['PATH_INFO'] != "/app_status" && super
end