singer_sdk.authenticators.BasicAuthenticator#
- class singer_sdk.authenticators.BasicAuthenticator#
Implements basic authentication for REST Streams.
This Authenticator implements basic authentication by concatinating 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: RESTStream, username: str, password: str) None #
Create a new authenticator.
- Parameters:
stream – The stream instance to use with this authenticator.
username – API username.
password – API password.
- classmethod create_for_stream(stream: RESTStream, username: str, password: str) BasicAuthenticator #
Create an Authenticator object specific to the Stream class.
- Parameters:
stream – The stream instance to use with this authenticator.
username – API username.
password – API password.
- Returns:
- A new
- Return type: