Module: RailsApiAuth

Defined in:
lib/rails_api_auth.rb,
lib/rails_api_auth/engine.rb,
lib/rails_api_auth/version.rb,
lib/rails_api_auth/authentication.rb

Overview

The engine’s main module.

Defined Under Namespace

Modules: Authentication

Constant Summary collapse

VERSION =
'0.0.5'.freeze

Instance Attribute Summary collapse

Instance Attribute Details

#facebook_app_idObject

The Facebook App ID.



17
# File 'lib/rails_api_auth.rb', line 17

mattr_accessor :facebook_app_id

#facebook_app_secretObject

The Facebook App secret.



21
# File 'lib/rails_api_auth.rb', line 21

mattr_accessor :facebook_app_secret

#facebook_redirect_uriObject

The Facebook App’s redirect URI.



25
# File 'lib/rails_api_auth.rb', line 25

mattr_accessor :facebook_redirect_uri

#force_sslObject

Force SSL for Oauth2Controller; defaults to ‘true`



46
# File 'lib/rails_api_auth.rb', line 46

mattr_accessor :force_ssl

#google_client_idObject

The Google client ID.



29
# File 'lib/rails_api_auth.rb', line 29

mattr_accessor :google_client_id

#google_client_secretObject

The Google client secret.



33
# File 'lib/rails_api_auth.rb', line 33

mattr_accessor :google_client_secret

#google_redirect_uriObject

The Google App’s redirect URI.



37
# File 'lib/rails_api_auth.rb', line 37

mattr_accessor :google_redirect_uri

#primary_key_typeObject

Configures database column type used for primary keys, currently only accepts :uuid



42
# File 'lib/rails_api_auth.rb', line 42

mattr_accessor :primary_key_type

#user_model_relationObject

Defines the ‘Login` model’s ‘belongs_to` relation to the host application’s ‘User` model (or `Account` or whatever the application stores user data in).

E.g. is this is set to ‘:profile`, the `Login` model will have a `belongs_to :profile` relation.



13
# File 'lib/rails_api_auth.rb', line 13

mattr_accessor :user_model_relation