Introduce force_basic_auth for maven_artifact (#64808)
as it's known from uri or get_url. Causes basic auth header to be sent on first request to avoid trouble with some receiving ends. Fixes #64595
This commit is contained in:
parent
9c79de2e1e
commit
30132861af
1 changed files with 10 additions and 0 deletions
|
@ -73,6 +73,15 @@ options:
|
||||||
- Add custom HTTP headers to a request in hash/dict format.
|
- Add custom HTTP headers to a request in hash/dict format.
|
||||||
type: dict
|
type: dict
|
||||||
version_added: "2.8"
|
version_added: "2.8"
|
||||||
|
force_basic_auth:
|
||||||
|
version_added: "2.10"
|
||||||
|
description:
|
||||||
|
- httplib2, the library used by the uri module only sends authentication information when a webservice
|
||||||
|
responds to an initial request with a 401 status. Since some basic auth services do not properly
|
||||||
|
send a 401, logins will fail. This option forces the sending of the Basic authentication header
|
||||||
|
upon initial request.
|
||||||
|
default: 'no'
|
||||||
|
type: bool
|
||||||
dest:
|
dest:
|
||||||
description:
|
description:
|
||||||
- The path where the artifact should be written to
|
- The path where the artifact should be written to
|
||||||
|
@ -548,6 +557,7 @@ def main():
|
||||||
username=dict(default=None, aliases=['aws_secret_key']),
|
username=dict(default=None, aliases=['aws_secret_key']),
|
||||||
password=dict(default=None, no_log=True, aliases=['aws_secret_access_key']),
|
password=dict(default=None, no_log=True, aliases=['aws_secret_access_key']),
|
||||||
headers=dict(type='dict'),
|
headers=dict(type='dict'),
|
||||||
|
force_basic_auth=dict(default=False, type='bool'),
|
||||||
state=dict(default="present", choices=["present", "absent"]), # TODO - Implement a "latest" state
|
state=dict(default="present", choices=["present", "absent"]), # TODO - Implement a "latest" state
|
||||||
timeout=dict(default=10, type='int'),
|
timeout=dict(default=10, type='int'),
|
||||||
dest=dict(type="path", required=True),
|
dest=dict(type="path", required=True),
|
||||||
|
|
Loading…
Reference in a new issue