You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add tooling to the Python CDK so that a connector can update it's in-memory configuration object, and when it does, it will emit a AirbyteControlMessage.ConnectorConfig message to share that new configuration with the platform so it can be stored.
All oAuth connectors which use the CDK will emit a clear and actional error message to users when the oAuth flow fails due to token/access errors. AirbyteTraceMessage.Error.external_message will be used to inform the user that they need to restart the oAuth workflow from the source’s config page.
For the specific use case of persisting config updates for access/refresh token we can take the following approach: AbstractOauth2Authenticator takes an emit_config_update boolean attribute, the get_access_token and refresh_access_token methods emits AirbyteControlMessage.ConnectorConfig if emit_config_update == true
For a more global approach for sending config updates: config are currently plain python dictionary, we could:
a. Load this config dictionary into a Config class with mutable attributes.
b. Calls on setter of the Config object could emit AirbyteControlMessage.ConnectorConfig
As part of this work, a connector should be updated to show that single-use refresh tokens work. We think that Jira is a good connector to test with.
The text was updated successfully, but these errors were encountered:
Part of the Single Use Refresh Tokens Epic
Add tooling to the Python CDK so that a connector can update it's in-memory configuration object, and when it does, it will emit a
AirbyteControlMessage.ConnectorConfig
message to share that new configuration with the platform so it can be stored.a. Load this config dictionary into a Config class with mutable attributes.
b. Calls on setter of the Config object could emit AirbyteControlMessage.ConnectorConfig
As part of this work, a connector should be updated to show that single-use refresh tokens work. We think that Jira is a good connector to test with.
The text was updated successfully, but these errors were encountered: