module Apress::Api::ApiController::Authentification

Private Instance Methods

authenticate() click to toggle source
# File lib/apress/api/api_controller/authentification.rb, line 28
def authenticate
  unauthorized unless @current_api_client
end
find_session() click to toggle source
# File lib/apress/api/api_controller/authentification.rb, line 22
def find_session
  auth_service = AuthService.new(request)
  return unless auth_service.call
  @current_api_client = auth_service.client
end