Module: ApiAuth::Rails::ControllerMethods::InstanceMethods

Defined in:
lib/api_auth/railtie.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#api_authenticated?(secret_key) ⇒ Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/api_auth/railtie.rb', line 11

def api_authenticated?(secret_key)
  ApiAuth.authentic?(request, secret_key)
end

#get_api_access_id_from_requestObject

:nodoc:



7
8
9
# File 'lib/api_auth/railtie.rb', line 7

def get_api_access_id_from_request
  ApiAuth.access_id(request)
end