authenticate_with_http_token(&login_procedure) public

Authenticate using an HTTP Bearer token. Returns the return value of login_procedure if a token is found. Returns nil if no token is found.

See ActionController::HttpAuthentication::Token for example usage.

Show source
Register or log in to add new notes.
January 16, 2015
0 thanks

An article about token-based authentication

www.codeschool.com/blog/2014/02/03/token-based-authentication-rails/