Class: Devise::Strategies::ApiTokenAuthenticatable
- Inherits:
-
TokenAuthenticatable
- Object
- TokenAuthenticatable
- Devise::Strategies::ApiTokenAuthenticatable
- Defined in:
- lib/devise/strategies/api_token_authenticatable.rb
Instance Method Summary collapse
Instance Method Details
#authenticate! ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/devise/strategies/api_token_authenticatable.rb', line 10 def authenticate! resource = mapping.to.find_for_api_token_authentication(authentication_hash) if validate(resource) resource.after_api_token_authentication if resource.respond_to?(:after_api_token_authentication) success!(resource) else fail(:invalid_token) end end |
#store? ⇒ Boolean
6 7 8 |
# File 'lib/devise/strategies/api_token_authenticatable.rb', line 6 def store? false end |