We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5cfb100 + 237dc9a commit 9667e4aCopy full SHA for 9667e4a
actionpack/lib/action_controller/metal/http_authentication.rb
@@ -424,7 +424,9 @@ module Token
424
425
module ControllerMethods
426
# Authenticate using an HTTP Bearer token, or otherwise render an HTTP
427
- # header requesting the client to send a Bearer token.
+ # header requesting the client to send a Bearer token. For the authentication
428
+ # to be considered successful, `login_procedure` should return a non-nil
429
+ # value. Typically, the authenticated user is returned.
430
#
431
# See ActionController::HttpAuthentication::Token for example usage.
432
def authenticate_or_request_with_http_token(realm = "Application", message = nil, &login_procedure)
0 commit comments