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_missing_v2, #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)


90
91
92
# File 'lib/mauth/rack.rb', line 90

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