Will Watkinson
03/21/2022, 7:53 PMAugustin Lafanechere (Airbyte)
03/22/2022, 2:25 PMclient.login()
. The request auth headers are set in HttpStream.read_records
and are retrieved using self.authenticator.get_auth_header()
. In your context I think self.authenticator == NoAuth()
because you did not pass an authenticator in to your streams in your kwargs.Will Watkinson
03/22/2022, 3:23 PMself._session.auth
like HttpStream
did in __init__
did not reset the auth headers on the specific request that was getting retried. Explicitly setting response.request.headers["Authorization"]
with the new token fixed that, though.
https://github.com/wjwatkinson/airbyte/blob/source-kyriba/airbyte-integrations/connectors/source-kyriba/source_kyriba/source.py#L70