Daniel Tallentire (Dan)
07/04/2023, 8:37 AMkapa.ai
07/04/2023, 8:37 AMkapa.ai
07/04/2023, 8:38 AMTokenAuthenticator and Oauth2Authenticator classes respectively. Both authentication strategies place the API token in the Authorization header. The OAuth2Authenticator goes an additional step further and has mechanisms to, given a refresh token, refresh the current access token. However, it currently only supports refresh tokens and not the full OAuth2.0 loop [source](https://docs.airbyte.com/connector-development/cdk-python/http-streams). For complex custom authentication schemes involving signing requests or doing multiple requests to authenticate, it's recommended to use the low-code CDK or Python CDK [source](https://docs.airbyte.com/connector-builder-ui/authentication). In a forum discussion, a user mentioned a similar case where the refresh token is only valid for a single use. The user found a solution in the SingleUseRefreshTokenOauth2Authenticator class, which was introduced in a recent PR [#19428 - CDK: Emit control message on config mutation](https://github.com/airbytehq/airbyte/pull/19428) [source](https://discuss.airbyte.io/t/3275). If the existing authentication methods do not meet your requirements, you can create a custom component by defining a new class in a new file in the connector's module. The class must implement the interface of the component it is replacing. For instance, a pagination strategy must implement airbyte_cdk.sources.declarative.requesters.paginators.strategies.pagination_strategy.PaginationStrategy [source](https://docs.airbyte.com/connector-development/config-based/advanced-topics). If the feature you need is not currently supported, you can create a feature request issue on the Airbyte GitHub page [source](https://docs.airbyte.com/connector-development/cdk-python).Joe Reuter (Airbyte)
07/05/2023, 10:47 AMJoe Reuter (Airbyte)
07/05/2023, 10:47 AMJoe Reuter (Airbyte)
07/05/2023, 10:48 AMDaniel Tallentire (Dan)
07/06/2023, 10:33 AM