If users supply an auth object which is not an instance of dlt.sources.helpers.rest_client.auth.AuthConfigBase then rest_api.create_auth returns None. It also returns None if no auth is specified.
Thus, providing an incorrect auth object results in the object not being employed.
dlt version
0.5.4
Describe the problem
If users supply an auth object which is not an instance of
dlt.sources.helpers.rest_client.auth.AuthConfigBase
thenrest_api.create_auth
returnsNone
. It also returnsNone
if no auth is specified. Thus, providing an incorrect auth object results in the object not being employed.Expected behavior
Steps to reproduce
Implement custom auth as follows:
Operating system
Linux
Runtime environment
Local
Python version
3.11
dlt data source
rest_api
dlt destination
No response
Other deployment details
No response
Additional information
No response