airbytehq / airbytehq/airbyte-python-cdk

[SelectiveAuthenticator] TypeError when attempting to create SessionTokenAuthenticator

オープン
#422 コメント 2 件 リアクション 2 件 担当者 0 名 GitHub で見る
community
主要言語
Python
スター
26
フォーク
53
平均マージ
2日 6時間
マージ済み PR(30日)
10

説明

## Component

SelectiveAuthenticator Component Factory

## Description

Attempting to create a SelectiveAuthenticator which includes a SessionTokenAuthenticator currently fails with `TypeError: ModelToComponentFactory.create_session_token_authenticator() missing 1 required positional argument: "'name' ","failure_type":"system_error"`

This is because [`create_selective_authenticator`](https://github.com/airbytehq/airbyte-python-cdk/blob/7a8cb929139443e392554d94567ad4824092257e/airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py#L2659-L2662) does not pass kwargs to the `ModelToComponentFactory._create_component_from_model`when creating authenticators for the SelectiveAuthenticator. kwargs contains the name argument passed down from `create_declarative_stream`which is required in [`create_session_token_authenticator`](https://github.com/airbytehq/airbyte-python-cdk/blob/7a8cb929139443e392554d94567ad4824092257e/airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py#L856-L857)

## Proposed solution
Pass kwargs to `_create_component_from_model` when creating authenticators for SelectiveAuthenticator

✅ Yes, I want to contribute

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。