Sha256: cb6e29b847693f77cf55f8881f32e3cf1d8610077f5c9935417a122704199cdf
Contents?: true
Size: 592 Bytes
Versions: 95
Compression:
Stored size: 592 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 WithAuthorization 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
95 entries across 95 versions & 1 rubygems