Skip to content

Commit 3961049

Browse files
authored
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 b148ca5 commit 3961049

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
@@ -909,7 +909,7 @@ def create_legacy_to_per_partition_state_migration(
909909
)
910910

911911
def create_session_token_authenticator(
912-
self, model: SessionTokenAuthenticatorModel, config: Config, name: str, **kwargs: Any
912+
self, model: SessionTokenAuthenticatorModel, config: Config, *, name: str, **kwargs: Any
913913
) -> Union[ApiKeyAuthenticator, BearerAuthenticator]:
914914
decoder = (
915915
self._create_component_from_model(model=model.decoder, config=config)

0 commit comments

Comments
 (0)