Module: RailsHealthChecks::Authentication
- Included in:
- ApplicationController
- Defined in:
- lib/rails_health_checks/authentication.rb
Instance Method Summary collapse
Instance Method Details
#authenticate! ⇒ Object
7 8 9 10 11 |
# File 'lib/rails_health_checks/authentication.rb', line 7 def authenticate! config = RailsHealthChecks.configuration return unless auth_configured?(config) head :unauthorized unless (config) end |