Class: Devise::Strategies::RemoteUserAuthenticatable
- Inherits:
-
Authenticatable
- Object
- Authenticatable
- Devise::Strategies::RemoteUserAuthenticatable
- Defined in:
- lib/devise_remote_user/strategy.rb
Instance Method Summary collapse
Instance Method Details
#authenticate! ⇒ Object
12 13 14 15 |
# File 'lib/devise_remote_user/strategy.rb', line 12 def authenticate! resource = mapping.to.find_for_remote_user_authentication(env) resource ? success!(resource) : fail end |
#valid? ⇒ Boolean
8 9 10 |
# File 'lib/devise_remote_user/strategy.rb', line 8 def valid? DeviseRemoteUser.remote_user_id(env).present? end |