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
-
#facebook_app_id ⇒ Object
The Facebook App ID.
-
#facebook_app_secret ⇒ Object
The Facebook App secret.
-
#facebook_redirect_uri ⇒ Object
The Facebook App’s redirect URI.
-
#force_ssl ⇒ Object
Force SSL for Oauth2Controller; defaults to ‘true`.
-
#google_client_id ⇒ Object
The Google client ID.
-
#google_client_secret ⇒ Object
The Google client secret.
-
#google_redirect_uri ⇒ Object
The Google App’s redirect URI.
-
#primary_key_type ⇒ Object
Configures database column type used for primary keys, currently only accepts :uuid.
-
#user_model_relation ⇒ Object
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).
Instance Attribute Details
#facebook_app_id ⇒ Object
The Facebook App ID.
17 |
# File 'lib/rails_api_auth.rb', line 17 mattr_accessor :facebook_app_id |
#facebook_app_secret ⇒ Object
The Facebook App secret.
21 |
# File 'lib/rails_api_auth.rb', line 21 mattr_accessor :facebook_app_secret |
#facebook_redirect_uri ⇒ Object
The Facebook App’s redirect URI.
25 |
# File 'lib/rails_api_auth.rb', line 25 mattr_accessor :facebook_redirect_uri |
#force_ssl ⇒ Object
Force SSL for Oauth2Controller; defaults to ‘true`
46 |
# File 'lib/rails_api_auth.rb', line 46 mattr_accessor :force_ssl |
#google_client_id ⇒ Object
The Google client ID.
29 |
# File 'lib/rails_api_auth.rb', line 29 mattr_accessor :google_client_id |
#google_client_secret ⇒ Object
The Google client secret.
33 |
# File 'lib/rails_api_auth.rb', line 33 mattr_accessor :google_client_secret |
#google_redirect_uri ⇒ Object
The Google App’s redirect URI.
37 |
# File 'lib/rails_api_auth.rb', line 37 mattr_accessor :google_redirect_uri |
#primary_key_type ⇒ Object
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_relation ⇒ Object
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 |