singer_sdk.authenticators.BasicAuthenticator

class singer_sdk.authenticators.BasicAuthenticator[source]

Implements basic authentication for REST Streams.

This Authenticator implements basic authentication by concatenating a username and password then base64 encoding the string. The resulting token will be merged with any HTTP headers specified on the stream.

__init__(*args, username, password, **kwargs)[source]

Create a new authenticator.

Parameters:
  • *args (Any) – Positional arguments.

  • username (str) – API username.

  • password (str) – API password.

  • **kwargs (Any) – Keyword arguments.

Return type:

None