You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dlt.common.exceptions.DictValidationException: In path ./client: field 'auth' expects the following types: AuthConfigBase, Literal, BearerTokenAuth, BearerTokenAuthConfig, APIKeyAuth, ApiKeyAuthConfig, HttpBasicAuth, HttpBasicAuthConfig, OAuth2ClientCredentials, OAuth2ClientCredentialsConfig. Provided value {'type': 'custom_auth', 'url': 'https://api.eurecia.com/eurecia', 'token': 'o8'} with type 'dict' is invalid with the following errors:
For BearerTokenAuthConfig: In path ./client/auth: following fields are unexpected {'url'}
For ApiKeyAuthConfig: In path ./client/auth: following required fields are missing {'api_key'}
For HttpBasicAuthConfig: In path ./client/auth: following required fields are missing {'username', 'password'}
For OAuth2ClientCredentialsConfig: In path ./client/auth: following required fields are missing {'client_secret', 'client_id', 'access_token_url'}
For AuthConfigBase: In path ./client: field 'auth' expects callable (function or class instance) but got '{'type': 'custom_auth', 'url': 'https://api.eurecia.com/eurecia', 'token': 'o8'}'. Mind that signatures are not validated
For Literal: In path ./client: field 'auth' with value {'type': 'custom_auth', 'url': 'https://api.eurecia.com/eurecia', 'token': 'o8'} is not one of: ['bearer', 'api_key', 'http_basic', 'oauth2_client_credentials', 'custom_auth']
For BearerTokenAuth: In path ./client: field 'auth' expects callable (function or class instance) but got '{'type': 'custom_auth', 'url': 'https://api.eurecia.com/eurecia', 'token': 'o8'}'. Mind that signatures are not validated
For APIKeyAuth: In path ./client: field 'auth' expects callable (function or class instance) but got '{'type': 'custom_auth', 'url': 'https://api.eurecia.com/eurecia', 'token': 'o8'}'. Mind that signatures are not validated
For HttpBasicAuth: In path ./client: field 'auth' expects callable (function or class instance) but got '{'type': 'custom_auth', 'url': 'https://api.eurecia.com/eurecia', 'token': 'o8'}'. Mind that signatures are not validated
For OAuth2ClientCredentials: In path ./client: field 'auth' expects callable (function or class instance) but got '{'type': 'custom_auth', 'url': 'https://api.eurecia.com/eurecia', 'token': 'o*****8'}'. Mind that signatures are not validated
Expected behavior
No response
Steps to reproduce
Create a fake CustomAuth class that expects both a url and a token parameter.
Then try to register it. You may reproduce the error.
Operating system
Windows
Runtime environment
Local
Python version
3.12
dlt data source
No response
dlt destination
No response
Other deployment details
No response
Additional information
No response
The text was updated successfully, but these errors were encountered:
dlt version
1.6.0
Describe the problem
Hi,
It seems the custom authentication registration is boken.
When I use, the CustomAuth like bellow, it works:
But when I try to register the same CustomAuth like this, I face a validation error :
Expected behavior
No response
Steps to reproduce
Create a fake CustomAuth class that expects both a url and a token parameter.
Then try to register it. You may reproduce the error.
Operating system
Windows
Runtime environment
Local
Python version
3.12
dlt data source
No response
dlt destination
No response
Other deployment details
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: