Add more options for auth #379
Merged
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.
This pull request adds support for two new authentication methods when initializing BigQuery clients and destinations: Application Default Credentials (ADC) and OAuth2 installed flow authentication. This makes it easier to integrate with different authentication environments and improves flexibility for users.
BigQuery client authentication enhancements:
new_with_adc
toBigQueryClient
for initializing using Application Default Credentials, simplifying authentication in cloud environments.new_with_flow_authenticator
toBigQueryClient
for OAuth2 installed flow authentication, supporting scenarios where interactive user authentication is needed.BigQuery destination initialization improvements:
new_with_adc
toBigQueryDestination
to allow creation using ADC, enabling seamless integration with GCP environments.new_with_flow_authenticator
toBigQueryDestination
to support initialization with an OAuth2 flow authenticator, providing more options for credential management and user authentication.