ansible-test - Remove obsolete remote auth (#86462)

This commit is contained in:
Matt Clay 2026-01-26 11:02:53 -08:00 committed by GitHub
parent ade3d2c3ff
commit c1ff53e21d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 14 deletions

View file

@ -0,0 +1,2 @@
minor_changes:
- ansible-test - Remove support for an obsolete remote authentication method.

View file

@ -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,