Module: Authenticate

Defined in:
lib/authenticate.rb,
lib/authenticate/user.rb,
lib/authenticate/debug.rb,
lib/authenticate/token.rb,
lib/authenticate/engine.rb,
lib/authenticate/modules.rb,
lib/authenticate/session.rb,
lib/authenticate/version.rb,
lib/authenticate/lifecycle.rb,
lib/authenticate/controller.rb,
lib/authenticate/model/email.rb,
lib/authenticate/login_status.rb,
lib/authenticate/configuration.rb,
lib/authenticate/crypto/bcrypt.rb,
lib/authenticate/model/username.rb,
lib/authenticate/model/lifetimed.rb,
lib/authenticate/model/trackable.rb,
lib/authenticate/model/brute_force.rb,
lib/authenticate/model/db_password.rb,
lib/authenticate/model/timeoutable.rb,
lib/generators/authenticate/helpers.rb,
lib/authenticate/model/password_reset.rb,
lib/generators/authenticate/views/views_generator.rb,
lib/generators/authenticate/routes/routes_generator.rb,
lib/generators/authenticate/install/install_generator.rb,
lib/generators/authenticate/controllers/controllers_generator.rb

Overview

deploy view and locale assets

Defined Under Namespace

Modules: Controller, Crypto, Debug, Generators, Model, Modules, User Classes: AuthenticateController, Configuration, Engine, Failure, Lifecycle, PasswordsController, Session, SessionsController, Success, Token, UsersController

Constant Summary collapse

VERSION =
'0.5.0'.freeze

Class Method Summary collapse

Class Method Details

.configurationObject

Access to Authenticate's configuration, e.g.:

puts Authenticate.configuration.redirect_url

298
299
300
# File 'lib/authenticate/configuration.rb', line 298

def self.configuration
  @configuration ||= Configuration.new
end

.configuration=(config) ⇒ Object


302
303
304
# File 'lib/authenticate/configuration.rb', line 302

def self.configuration=(config)
  @configuration = config
end

.configure {|configuration| ... } ⇒ Object

Yields:


306
307
308
# File 'lib/authenticate/configuration.rb', line 306

def self.configure
  yield configuration
end

.lifecycleObject

Invoke lifecycle methods. Example:

Authenticate.lifecycle.run_callbacks(:after_set_user, current_user, authenticate_session, { event: :set_user })

112
113
114
# File 'lib/authenticate/lifecycle.rb', line 112

def self.lifecycle
  @lifecycle ||= Lifecycle.new
end

.lifecycle=(lifecycle) ⇒ Object


116
117
118
# File 'lib/authenticate/lifecycle.rb', line 116

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