Module: Contrib::Auth
- Defined in:
- lib/contrib/auth.rb,
lib/contrib/auth/api.rb,
lib/contrib/auth/engine.rb,
lib/contrib/auth/version.rb,
lib/contrib/auth/configuration.rb,
app/jobs/contrib/auth/application_job.rb,
lib/contrib/auth/provider/google_auth.rb,
app/models/contrib/auth/application_record.rb,
app/helpers/contrib/auth/application_helper.rb,
app/mailers/contrib/auth/application_mailer.rb,
app/controllers/contrib/auth/application_controller.rb,
lib/contrib/auth/provider/responses/change_password.rb,
app/controllers/contrib/auth/authentication_controller.rb,
lib/contrib/auth/provider/responses/sign_in_with_password.rb,
lib/contrib/auth/provider/responses/sign_up_with_email_and_password.rb
Defined Under Namespace
Modules: ApplicationHelper, Provider
Classes: Api, ApplicationController, ApplicationJob, ApplicationMailer, ApplicationRecord, AuthenticationController, Configuration, Engine
Constant Summary
collapse
- VERSION =
'0.5.0'
Class Method Summary
collapse
Class Method Details
.api ⇒ Object
22
23
24
|
# File 'lib/contrib/auth.rb', line 22
def api
@@api ||= Api.new(config.provider)
end
|
.config ⇒ Object
14
15
16
|
# File 'lib/contrib/auth.rb', line 14
def config
@@configuration ||= Configuration.new
end
|
18
19
20
|
# File 'lib/contrib/auth.rb', line 18
def configure
yield config if block_given?
end
|