Class: Blazer::Api::ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Includes:
ActionController::HttpAuthentication::Token::ControllerMethods
Defined in:
app/controllers/blazer/api/application_controller.rb

Direct Known Subclasses

QueriesController

Instance Method Summary collapse

Instance Method Details

#authenticateObject



11
12
13
14
15
# File 'app/controllers/blazer/api/application_controller.rb', line 11

def authenticate
  authenticate_with_http_token do |token, options|
    authentication.call(token, options)
  end || render_unauthorized
end