Skip to content

Commit ef67b08

Browse files
committed
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.
1 parent cb193ab commit ef67b08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1084,7 +1084,7 @@ def create_legacy_to_per_partition_state_migration(
10841084
)
10851085

10861086
def create_session_token_authenticator(
1087-
self, model: SessionTokenAuthenticatorModel, config: Config, name: str, **kwargs: Any
1087+
self, model: SessionTokenAuthenticatorModel, config: Config, *, name: str, **kwargs: Any
10881088
) -> Union[ApiKeyAuthenticator, BearerAuthenticator]:
10891089
decoder = (
10901090
self._create_component_from_model(model=model.decoder, config=config)

0 commit comments

Comments
 (0)