method

authenticate_with_http_token

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.

1Note

An article about token-based authentication

linjunpop ยท Jan 16, 2015