mirror of
https://github.com/ansible/ansible.git
synced 2026-02-03 20:40:24 -05:00
ansible-test - Remove obsolete remote auth (#86462)
This commit is contained in:
parent
ade3d2c3ff
commit
c1ff53e21d
2 changed files with 3 additions and 14 deletions
2
changelogs/fragments/ansible-test-auth-cleanup.yml
Normal file
2
changelogs/fragments/ansible-test-auth-cleanup.yml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
minor_changes:
|
||||
- ansible-test - Remove support for an obsolete remote authentication method.
|
||||
|
|
@ -260,22 +260,9 @@ class PasswordAuthenticator(Authenticator):
|
|||
|
||||
def prepare_auth_request(self, config: dict[str, object], context: AuthContext) -> dict[str, object]:
|
||||
parts = self.config_file().read_text().strip().split(maxsplit=1)
|
||||
|
||||
if len(parts) == 1: # temporary backward compatibility for legacy API keys
|
||||
request = dict(
|
||||
config=config,
|
||||
auth=dict(
|
||||
remote=dict(
|
||||
key=parts[0],
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
return request
|
||||
|
||||
username, password = parts
|
||||
|
||||
request = dict(
|
||||
request: dict[str, object] = dict(
|
||||
type="remote:password",
|
||||
config=config,
|
||||
username=username,
|
||||
|
|
|
|||
Loading…
Reference in a new issue