https://linen.dev logo
#singer-tap-development
Title
# singer-tap-development
s

stephen_bailey

08/02/2021, 10:03 PM
Would it be of interest to add
BasicAuthenticator
to the SDK? I have had to do this
base64
approach a couple times now, and it took me a bit to figure it out the first time:
Copy code
raw_credentials = f"{stream.config['username']}:{stream.config['password']}"
auth_token = base64.b64encode(raw_credentials.encode()).decode("ascii")
auth_headers = {"Authorization": f"Basic {auth_token}"}