Module: CognitoIdpRails

Defined in:
lib/cognito_idp_rails.rb,
lib/cognito_idp_rails/engine.rb,
lib/cognito_idp_rails/version.rb,
lib/cognito_idp_rails/configuration.rb,
app/jobs/cognito_idp_rails/application_job.rb,
app/models/cognito_idp_rails/application_record.rb,
lib/cognito_idp_rails/routing/mapper_extensions.rb,
app/helpers/cognito_idp_rails/application_helper.rb,
app/mailers/cognito_idp_rails/application_mailer.rb,
lib/generators/cognito_idp_rails/install_generator.rb,
app/controllers/cognito_idp_rails/sessions_controller.rb,
app/controllers/cognito_idp_rails/application_controller.rb

Defined Under Namespace

Modules: ApplicationHelper, Generators, Routing Classes: ApplicationController, ApplicationJob, ApplicationMailer, ApplicationRecord, Configuration, Engine, SessionsController

Constant Summary collapse

VERSION =
"1.0.0"

Class Method Summary collapse

Class Method Details

.clientObject



13
14
15
16
17
18
19
# File 'lib/cognito_idp_rails.rb', line 13

def client
  @client ||= CognitoIdp::Client.new(
    client_id: configuration.client_id,
    client_secret: configuration.client_secret,
    domain: configuration.domain
  )
end

.configurationObject



21
22
23
# File 'lib/cognito_idp_rails.rb', line 21

def configuration
  @configuration ||= Configuration.new
end

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

Yields:



25
26
27
# File 'lib/cognito_idp_rails.rb', line 25

def configure
  yield(configuration)
end