singer_sdk.authenticators.BasicAuthenticator¶
- class singer_sdk.authenticators.BasicAuthenticator[source]¶
Implements basic authentication for REST Streams.
Deprecated since version 0.36.0: Use
requests.auth.HTTPBasicAuth
instead.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__(stream, username, password)[source]¶
Create a new authenticator.
- Parameters:
stream (RESTStream) – The stream instance to use with this authenticator.
username (str) – API username.
password (str) – API password.
- Return type:
None
- classmethod create_for_stream(stream, username, password)[source]¶
Create an Authenticator object specific to the Stream class.
- Parameters:
stream (RESTStream) – The stream instance to use with this authenticator.
username (str) – API username.
password (str) – API password.
- Returns:
- A new
- Return type: