I'm sure I'm missing something simple here. I'm wr...
# help-connector-development
c
I'm sure I'm missing something simple here. I'm writing my first connector. It's a python HTTP API source connector. I'm in the source.py streams method, trying to pass in the api token. When I write my code normally, I use (in my header) 'Authorization': 'my_api_token'. In my airbyte connector code, I try to use the auth = TokenAuthenticator(token=api_token), it returns a 401 because the default is "Bearer". This makes the header become: "Authorization": "Bearer my_api_token". I have tried changing the auth_method to be "token", "Bearer", and "access_token". All fail with the 401 error. I tried to use auth_method="". but then the base code converts it to "Authorization" : " my_api_token" and I get an error that my token can't begin with a space. Anyone know how I can get it to just send "Authorization":"my_token"?
m
Check the code implementation oh TokenAuthenticator to see what you need to overwrite and work with your token style
a
I show how to over-ride authentication in this tutorial