Given we have the ability to set the headers to be sent along the request using the new --headers, if a Authorization header is found it should suppress the usage of HTTP Basic Authentication.
Examples
When using pulp --headers authorization:Bearer sometoken we should send the proper header Authorization: Bearer sometoken instead of using HTTP Basic Authentication.
Summary
Given we have the ability to set the headers to be sent along the request using the new
--headers
, if aAuthorization
header is found it should suppress the usage of HTTP Basic Authentication.Examples
When using
pulp --headers authorization:Bearer sometoken
we should send the proper headerAuthorization: Bearer sometoken
instead of using HTTP Basic Authentication.