instance method
authenticate_with_http_token
Ruby on Rails 7.0.10
Since v3.0.20Signature
authenticate_with_http_token(&login_procedure)
Authenticate using an HTTP Bearer token. Returns true if authentication is successful, false otherwise.
Parameters
-
login_procedureblock
Source
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 436
def authenticate_with_http_token(&login_procedure)
Token.authenticate(self, &login_procedure)
end
Defined in actionpack/lib/action_controller/metal/http_authentication.rb line 436
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::HttpAuthentication::Token::ControllerMethods