instance method
authenticate_with_http_token
Ruby on Rails 8.0.4
Since v3.0.20Signature
authenticate_with_http_token(&login_procedure)
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.
Parameters
-
login_procedureblock
Source
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 446
def authenticate_with_http_token(&login_procedure)
Token.authenticate(self, &login_procedure)
end
Defined in actionpack/lib/action_controller/metal/http_authentication.rb line 446
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::HttpAuthentication::Token::ControllerMethods