Class: Lockie::Configuration
- Inherits:
-
Object
- Object
- Lockie::Configuration
- Defined in:
- lib/lockie.rb
Instance Attribute Summary collapse
-
#callback_url ⇒ Object
Returns the value of attribute callback_url.
-
#default_strategies ⇒ Object
Returns the value of attribute default_strategies.
-
#hash_algorithm ⇒ Object
Returns the value of attribute hash_algorithm.
-
#jwt_secret ⇒ Object
Returns the value of attribute jwt_secret.
-
#model_name ⇒ Object
Returns the value of attribute model_name.
-
#scopes ⇒ Object
Returns the value of attribute scopes.
-
#serialize_session ⇒ Object
Returns the value of attribute serialize_session.
-
#serializer_from_session ⇒ Object
Returns the value of attribute serializer_from_session.
-
#serializer_to_session ⇒ Object
Returns the value of attribute serializer_to_session.
-
#session_timeout ⇒ Object
Returns the value of attribute session_timeout.
-
#unauthenticated_path ⇒ Object
Returns the value of attribute unauthenticated_path.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/lockie.rb', line 26 def initialize @model_name = "User" @unauthenticated_path = "/login" @default_strategies = [:email_password, :jwt] @hash_algorithm = "HS256" @serialize_session = true @callback_url = true @scopes = [] @serializer_to_session = nil @serializer_from_session = nil @session_timeout = 3.hours end |
Instance Attribute Details
#callback_url ⇒ Object
Returns the value of attribute callback_url.
21 22 23 |
# File 'lib/lockie.rb', line 21 def callback_url @callback_url end |
#default_strategies ⇒ Object
Returns the value of attribute default_strategies.
17 18 19 |
# File 'lib/lockie.rb', line 17 def default_strategies @default_strategies end |
#hash_algorithm ⇒ Object
Returns the value of attribute hash_algorithm.
19 20 21 |
# File 'lib/lockie.rb', line 19 def hash_algorithm @hash_algorithm end |
#jwt_secret ⇒ Object
Returns the value of attribute jwt_secret.
18 19 20 |
# File 'lib/lockie.rb', line 18 def jwt_secret @jwt_secret end |
#model_name ⇒ Object
Returns the value of attribute model_name.
15 16 17 |
# File 'lib/lockie.rb', line 15 def model_name @model_name end |
#scopes ⇒ Object
Returns the value of attribute scopes.
22 23 24 |
# File 'lib/lockie.rb', line 22 def scopes @scopes end |
#serialize_session ⇒ Object
Returns the value of attribute serialize_session.
20 21 22 |
# File 'lib/lockie.rb', line 20 def serialize_session @serialize_session end |
#serializer_from_session ⇒ Object
Returns the value of attribute serializer_from_session.
23 24 25 |
# File 'lib/lockie.rb', line 23 def serializer_from_session @serializer_from_session end |
#serializer_to_session ⇒ Object
Returns the value of attribute serializer_to_session.
23 24 25 |
# File 'lib/lockie.rb', line 23 def serializer_to_session @serializer_to_session end |
#session_timeout ⇒ Object
Returns the value of attribute session_timeout.
24 25 26 |
# File 'lib/lockie.rb', line 24 def session_timeout @session_timeout end |
#unauthenticated_path ⇒ Object
Returns the value of attribute unauthenticated_path.
16 17 18 |
# File 'lib/lockie.rb', line 16 def unauthenticated_path @unauthenticated_path end |