Module: Authpwn::ControllerBaseExtensions

Extended by:
ActiveSupport::Concern
Included in:
ActionController::Base
Defined in:
lib/authpwn_rails/session.rb

Overview

Included in ActionController::Base.

Can be included manually in controllers that don’t inherit from ActionController::Base, such as rails-api controllers.

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#auth_controller?Boolean

True for controllers belonging to the authentication implementation.

Controllers that return true here are responsible for performing their own authorization.

Returns:

  • (Boolean)


18
19
20
# File 'lib/authpwn_rails/session.rb', line 18

def auth_controller?
  false
end