Module: Intra

Defined in:
lib/intra.rb,
lib/intra/engine.rb,
lib/intra/session.rb,
lib/intra/version.rb,
lib/intra/rack_session.rb,
lib/intra/authentication.rb,
lib/intra/authenticatable.rb,
lib/intra/omniauth_failure_app.rb,
lib/intra/request_forgery_protection.rb,
app/controllers/intra/sessions_controller.rb

Defined Under Namespace

Modules: Authenticatable, Authentication Classes: Engine, OmniAuthFailureApp, RackSession, RequestForgeryProtection, Session, SessionsController

Constant Summary collapse

VERSION =
"0.1.1"

Class Method Summary collapse

Class Method Details

.loggerObject



39
40
41
# File 'lib/intra.rb', line 39

def self.logger
  @@logger ||= Logger.new($STDOUT)
end

.logger=(logger) ⇒ Object

Configure the logger Intra will use. Defaults to Logger.new($STDOUT)



35
36
37
# File 'lib/intra.rb', line 35

def self.logger=(logger)
  @@logger = logger
end

.sign_in_pathObject

Configure the path to redirect unauthenticated session. Default ‘/sign_in’



17
18
19
# File 'lib/intra.rb', line 17

def self.(path)
  @@sign_in_path = path
end

.user_classObject



30
31
32
# File 'lib/intra.rb', line 30

def self.user_class
  @@user_class ||= 'User'
end

.user_class=(user_class) ⇒ Object

Configure the user class. Default ‘User’



26
27
28
# File 'lib/intra.rb', line 26

def self.user_class=(user_class)
  @@user_class = user_class
end