Method: ActionDispatch::Request#authorization

Defined in:
actionpack/lib/action_dispatch/http/request.rb

#authorizationObject

Returns the authorization header regardless of whether it was specified directly or through one of the proxy alternatives.



460
461
462
463
464
465
# File 'actionpack/lib/action_dispatch/http/request.rb', line 460

def authorization
  get_header("HTTP_AUTHORIZATION")   ||
  get_header("X-HTTP_AUTHORIZATION") ||
  get_header("X_HTTP_AUTHORIZATION") ||
  get_header("REDIRECT_X_HTTP_AUTHORIZATION")
end