From 39610490ace61002a6cf9366ce98fcf6b375cb6b Mon Sep 17 00:00:00 2001 From: hai-ld <1579471+hai-ld@users.noreply.github.com> Date: Mon, 21 Apr 2025 13:01:47 +0700 Subject: [PATCH] Allow SessionTokenAuthenticator to be created as a subcomponent to a custom component Change `name` argument in the function `create_session_token_authenticator` to a keyword-only argument so that it can be injected via `$parameters`. Other `name` arguments in the same module are already keyword-only. --- .../sources/declarative/parsers/model_to_component_factory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py b/airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py index 064fb6c91..4f16af285 100644 --- a/airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py +++ b/airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py @@ -909,7 +909,7 @@ def create_legacy_to_per_partition_state_migration( ) def create_session_token_authenticator( - self, model: SessionTokenAuthenticatorModel, config: Config, name: str, **kwargs: Any + self, model: SessionTokenAuthenticatorModel, config: Config, *, name: str, **kwargs: Any ) -> Union[ApiKeyAuthenticator, BearerAuthenticator]: decoder = ( self._create_component_from_model(model=model.decoder, config=config)