feat: add support for OAuth2 configuration in BaseConnectorProviderService.create_asset #176
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

WHAT
Added support for OAuth2 authorization in asset data addresses within the
create_assetmethod ofBaseConnectorProviderService.A new optional parameter
oauth2_confighas been added that accepts a dictionary with the following keys:tokenUrl: URL to request the OAuth2 access tokenclientId: The client ID for OAuth2 authenticationclientSecretKey: The key in the Vault where the client secret is storedWhen provided, these values are added to the data address with the proper oauth2: prefix as expected by the connector.
WHY
The connector documentation states that HTTP Data Plane data addresses can be protected by OAuth2 authentication. However, the SDK's method did not support this configuration, limiting users from creating assets with OAuth2-protected backend data sources.
FURTHER NOTES
Closes #175