Class: LHC::Auth

Inherits:
Interceptor show all
Defined in:
lib/lhc/interceptors/auth.rb

Instance Attribute Summary

Attributes inherited from Interceptor

#request

Instance Method Summary collapse

Methods inherited from Interceptor

#after_request, #after_response, #before_raw_request, #before_response, dup, #initialize, #response

Constructor Details

This class inherits a constructor from LHC::Interceptor

Instance Method Details

#before_requestObject



3
4
5
6
# File 'lib/lhc/interceptors/auth.rb', line 3

def before_request
  options = request.options[:auth] || {}
  authenticate!(request, options)
end