Module: Auth
- Defined in:
- lib/auth/engine.rb,
lib/auth/mailgun.rb,
lib/auth/version.rb,
lib/auth/partials.rb,
lib/wordjelly-auth.rb,
lib/auth/search/main.rb,
app/models/auth/client.rb,
lib/auth/omniauth/path.rb,
lib/auth/two_factor_otp.rb,
app/models/auth/identity.rb,
lib/auth/job_exception_handler.rb,
app/helpers/auth/clients_helper.rb,
app/helpers/auth/application_helper.rb,
app/controllers/auth/clients_controller.rb,
app/controllers/auth/application_controller.rb
Overview
require “auth/sidekiq_up”
Defined Under Namespace
Modules: AdminCreateUsersHelper, ApplicationHelper, AssembliesHelper, ClientsHelper, ImagesHelper, JobExceptionHandler, Mailgun, Notify, OmniAuth, Partials, ResourceHelper, Search, SearchHelper, TwoFactorOtp Classes: AdminCreateUser, AdminCreateUsersController, ApplicationController, AuthenticatedController, Client, ClientsController, Configuration, ConfirmationsController, Endpoint, EndpointsController, Engine, Identity, Image, ImagesController, MailgunController, Notifier, OmniauthCallbacksController, PasswordsController, ProfilesController, RegistrationsController, SearchController, SendMail, SessionsController, UnlocksController, User, WebhooksController
Constant Summary collapse
- VERSION =
"1.5.3"
Class Attribute Summary collapse
-
.configuration ⇒ Object
Returns the value of attribute configuration.
Class Method Summary collapse
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
27 28 29 |
# File 'lib/auth/engine.rb', line 27 def configuration @configuration end |
Class Method Details
.configure {|configuration| ... } ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/auth/engine.rb', line 30 def self.configure self.configuration ||= Configuration.new yield(configuration) self.configuration.auth_resources.keys.each do |res| ##a skip option must be present on each auth resource. if self.configuration.auth_resources[res][:skip].nil? self.configuration.auth_resources[res][:skip] = [] end ##a token_auth_options hash must be present on the ##configuration for each resource.. if self.configuration.auth_resources[res]["token_auth_options"].nil? self.configuration.auth_resources[res]["token_auth_options"] = { fallback: :exception #, #if: lambda { |controller| controller.request.format.json? } } end end ## end |