Sha256: bdda91c15463366f94bbf3730ba6ec2f19e4192b90c0e5d5aba26913a17b0b3f
Contents?: true
Size: 559 Bytes
Versions: 18
Compression:
Stored size: 559 Bytes
Contents
module Api class BaseController < ActionController::Base Mumukit::Login.configure_controller! self protect_from_forgery with: :null_session include WithApiErrors 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
18 entries across 18 versions & 1 rubygems