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

Version Path
mumuki-laboratory-8.6.1 app/controllers/api/base_controller.rb
mumuki-laboratory-8.6.0 app/controllers/api/base_controller.rb
mumuki-laboratory-8.5.0 app/controllers/api/base_controller.rb
mumuki-laboratory-8.4.0 app/controllers/api/base_controller.rb
mumuki-laboratory-8.3.0 app/controllers/api/base_controller.rb
mumuki-laboratory-8.2.1 app/controllers/api/base_controller.rb
mumuki-laboratory-8.2.0 app/controllers/api/base_controller.rb
mumuki-laboratory-8.1.3 app/controllers/api/base_controller.rb
mumuki-laboratory-8.1.2 app/controllers/api/base_controller.rb
mumuki-laboratory-8.1.1 app/controllers/api/base_controller.rb
mumuki-laboratory-8.1.0 app/controllers/api/base_controller.rb
mumuki-laboratory-7.12.3 app/controllers/api/base_controller.rb
mumuki-laboratory-8.0.0 app/controllers/api/base_controller.rb
mumuki-laboratory-7.12.1 app/controllers/api/base_controller.rb
mumuki-laboratory-7.12.0 app/controllers/api/base_controller.rb
mumuki-laboratory-7.11.1 app/controllers/api/base_controller.rb
mumuki-laboratory-7.11.0 app/controllers/api/base_controller.rb
mumuki-laboratory-7.10.5 app/controllers/api/base_controller.rb
mumuki-laboratory-7.10.4 app/controllers/api/base_controller.rb
mumuki-laboratory-7.10.3 app/controllers/api/base_controller.rb