Class: Devise::Strategies::Authenticatable
- Defined in:
- lib/devise/strategies/authenticatable.rb
Overview
This strategy should be used as basis for authentication strategies. It retrieves parameters both from params or from http authorization headers. See database_authenticatable for an example.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#authentication_hash ⇒ Object
Returns the value of attribute authentication_hash.
-
#password ⇒ Object
Returns the value of attribute password.
Instance Method Summary collapse
Methods inherited from Base
Instance Attribute Details
#authentication_hash ⇒ Object
Returns the value of attribute authentication_hash.
9 10 11 |
# File 'lib/devise/strategies/authenticatable.rb', line 9 def authentication_hash @authentication_hash end |
#password ⇒ Object
Returns the value of attribute password.
9 10 11 |
# File 'lib/devise/strategies/authenticatable.rb', line 9 def password @password end |
Instance Method Details
#valid? ⇒ Boolean
11 12 13 |
# File 'lib/devise/strategies/authenticatable.rb', line 11 def valid? valid_for_http_auth? || valid_for_params_auth? end |