method
authenticate_or_request_with_http_token
v4.0.2 -
Show latest stable
- Class:
ActionController::HttpAuthentication::Token::ControllerMethods
authenticate_or_request_with_http_token(realm = "Application", &login_procedure)public
No documentation available.
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 393
def authenticate_or_request_with_http_token(realm = "Application", &login_procedure)
authenticate_with_http_token(&login_procedure) || request_http_token_authentication(realm)
end 1Note
Article
Here is artice about this method http://blog.envylabs.com/post/75521798481/token-based-authentication-in-rails