Module: JsonTokenAuthentication
- Defined in:
- lib/json_token_authentication.rb,
lib/json_token_authentication/utility.rb,
lib/json_token_authentication/version.rb,
lib/json_token_authentication/responder.rb,
lib/json_token_authentication/validator.rb,
lib/generators/json_token_authentication/install_generator.rb
Defined Under Namespace
Modules: Generators, Utility Classes: Responder, Validator
Constant Summary collapse
- VERSION =
"0.1.0"
Class Attribute Summary collapse
-
.encoder ⇒ Object
Returns the value of attribute encoder.
-
.encoder_secret ⇒ Object
Returns the value of attribute encoder_secret.
-
.entity_class_name ⇒ Object
Returns the value of attribute entity_class_name.
-
.entity_identifier_method_name ⇒ Object
Returns the value of attribute entity_identifier_method_name.
-
.expiry_within ⇒ Object
Returns the value of attribute expiry_within.
Class Method Summary collapse
Class Attribute Details
.encoder ⇒ Object
Returns the value of attribute encoder.
5 6 7 |
# File 'lib/json_token_authentication.rb', line 5 def encoder @encoder end |
.encoder_secret ⇒ Object
Returns the value of attribute encoder_secret.
5 6 7 |
# File 'lib/json_token_authentication.rb', line 5 def encoder_secret @encoder_secret end |
.entity_class_name ⇒ Object
Returns the value of attribute entity_class_name.
5 6 7 |
# File 'lib/json_token_authentication.rb', line 5 def entity_class_name @entity_class_name end |
.entity_identifier_method_name ⇒ Object
Returns the value of attribute entity_identifier_method_name.
5 6 7 |
# File 'lib/json_token_authentication.rb', line 5 def entity_identifier_method_name @entity_identifier_method_name end |
.expiry_within ⇒ Object
Returns the value of attribute expiry_within.
5 6 7 |
# File 'lib/json_token_authentication.rb', line 5 def expiry_within @expiry_within end |
Class Method Details
.configure {|_self| ... } ⇒ Object
12 13 14 |
# File 'lib/json_token_authentication.rb', line 12 def configure yield(self) end |
.max_expiry_time ⇒ Object
8 9 10 |
# File 'lib/json_token_authentication.rb', line 8 def max_expiry_time expiry_within.from_now.to_i end |