Sha256: 056f66ba4f64579a6bc9e30a4f9543e112a9680ed867a2a993115a68c26c3120
Contents?: true
Size: 562 Bytes
Versions: 46
Compression:
Stored size: 562 Bytes
Contents
module Api class BaseController < ActionController::Base Mumukit::Login.configure_controller! self protect_from_forgery with: :null_session include Mumuki::Laboratory::Controllers::DynamicErrors include Mumuki::Laboratory::Controllers::CurrentOrganization before_action :set_current_organization! include OnBaseOrganizationOnly before_action :verify_api_client! private def verify_api_client! ApiClient.verify_token! Mumukit::Auth::Token.extract_from_header(request.env['HTTP_AUTHORIZATION']) end end end
Version data entries
46 entries across 46 versions & 1 rubygems