Class: LHC::Auth
- Inherits:
-
Interceptor
- Object
- Interceptor
- LHC::Auth
- Includes:
- ActiveSupport::Configurable
- Defined in:
- lib/lhc/interceptors/auth.rb
Instance Attribute Summary
Attributes inherited from Interceptor
Instance Method Summary collapse
Methods inherited from Interceptor
#after_request, #before_raw_request, #before_response, dup, #initialize, #response
Constructor Details
This class inherits a constructor from LHC::Interceptor
Instance Method Details
#after_response ⇒ Object
9 10 11 12 13 |
# File 'lib/lhc/interceptors/auth.rb', line 9 def after_response return unless configuration_correct? return unless reauthenticate? reauthenticate! end |
#before_request ⇒ Object
5 6 7 |
# File 'lib/lhc/interceptors/auth.rb', line 5 def before_request authenticate! end |