Module: G5Authenticatable

Defined in:
lib/g5_authenticatable.rb,
lib/g5_authenticatable/engine.rb,
lib/g5_authenticatable/version.rb,
app/models/g5_authenticatable/role.rb,
app/models/g5_authenticatable/user.rb,
lib/g5_authenticatable/test/env_helpers.rb,
app/policies/g5_authenticatable/base_policy.rb,
lib/g5_authenticatable/test/feature_helpers.rb,
lib/g5_authenticatable/test/request_helpers.rb,
app/controllers/g5_authenticatable/failure_app.rb,
lib/g5_authenticatable/test/controller_helpers.rb,
app/helpers/g5_authenticatable/application_helper.rb,
app/controllers/g5_authenticatable/error_controller.rb,
lib/g5_authenticatable/test/token_validation_helpers.rb,
app/controllers/g5_authenticatable/sessions_controller.rb,
app/services/g5_authenticatable/impersonate_sessionable.rb,
app/controllers/concerns/g5_authenticatable/authorization.rb,
app/controllers/g5_authenticatable/application_controller.rb,
lib/generators/g5_authenticatable/install/install_generator.rb

Defined Under Namespace

Modules: ApplicationHelper, Authorization, ImpersonateSessionable, Test Classes: ApplicationController, BasePolicy, Engine, ErrorController, FailureApp, InstallGenerator, Role, SessionsController, User

Constant Summary collapse

VERSION =
'1.1.1'
@@strict_token_validation =

When enabled, access tokens are always validated against the auth server, even when that token is associated with an authenticated user. Disabled by default, meaning that tokens are only validated if they are explicitly passed in on an API request.

false

Class Method Summary collapse

Class Method Details

.strict_token_validation=(validate) ⇒ Object



17
18
19
20
21
# File 'lib/g5_authenticatable.rb', line 17

def self.strict_token_validation=(validate)
  @@strict_token_validation =
    G5AuthenticatableApi.strict_token_validation =
      Devise.g5_strict_token_validation = validate
end