Module: ActionAuth

Defined in:
lib/action_auth.rb,
lib/action_auth/engine.rb,
lib/action_auth/version.rb,
app/models/action_auth/user.rb,
lib/action_auth/configuration.rb,
app/models/action_auth/current.rb,
app/models/action_auth/session.rb,
lib/action_auth/routing/helpers.rb,
app/mailers/action_auth/user_mailer.rb,
lib/action_auth/controllers/helpers.rb,
app/jobs/action_auth/application_job.rb,
app/models/action_auth/application_record.rb,
app/helpers/action_auth/application_helper.rb,
app/mailers/action_auth/application_mailer.rb,
app/models/action_auth/webauthn_credential.rb,
app/controllers/action_auth/users_controller.rb,
app/controllers/action_auth/sessions_controller.rb,
app/controllers/action_auth/passwords_controller.rb,
app/controllers/action_auth/application_controller.rb,
app/controllers/action_auth/registrations_controller.rb,
app/controllers/action_auth/identity/emails_controller.rb,
app/controllers/action_auth/magics/requests_controller.rb,
app/controllers/action_auth/magics/sign_ins_controller.rb,
app/controllers/action_auth/sessions/passkeys_controller.rb,
app/controllers/action_auth/sms_auths/requests_controller.rb,
app/controllers/action_auth/sms_auths/sign_ins_controller.rb,
app/controllers/action_auth/identity/password_resets_controller.rb,
app/controllers/action_auth/identity/email_verifications_controller.rb

Defined Under Namespace

Modules: ApplicationHelper, Controllers, Identity, Routing, Sessions Classes: ApplicationController, ApplicationJob, ApplicationMailer, ApplicationRecord, Configuration, Current, Engine, PasswordsController, RegistrationsController, Session, SessionsController, User, UserMailer, UsersController, WebauthnCredential, WebauthnCredentialAuthenticationsController, WebauthnCredentialsController

Constant Summary collapse

VERSION =
"1.7.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject



9
10
11
# File 'lib/action_auth.rb', line 9

def configuration
  @configuration ||= Configuration.new
end

Class Method Details

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

Yields:



13
14
15
16
# File 'lib/action_auth.rb', line 13

def configure
  yield(configuration) if block_given?
  configure_webauthn
end

.configure_webauthnObject



18
19
20
21
22
23
24
25
26
# File 'lib/action_auth.rb', line 18

def configure_webauthn
  return unless configuration.webauthn_enabled?
  return unless defined?(WebAuthn)

  WebAuthn.configure do |config|
    config.origin = configuration.webauthn_origin
    config.rp_name = configuration.webauthn_rp_name
  end
end