Skip to content
This repository was archived by the owner on Jul 6, 2023. It is now read-only.

Commit d7c07f8

Browse files
fix: disable self signed jwt if users provide their own credential (#86)
* fix: disable self signed jwt if credentials provided * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 1751701 commit d7c07f8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • google/cloud/channel_v1/services/cloud_channel_service

google/cloud/channel_v1/services/cloud_channel_service/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,8 @@ def __init__(
427427
client_cert_source_for_mtls=client_cert_source_func,
428428
quota_project_id=client_options.quota_project_id,
429429
client_info=client_info,
430-
always_use_jwt_access=(
430+
always_use_jwt_access=not credentials
431+
and (
431432
Transport == type(self).get_transport_class("grpc")
432433
or Transport == type(self).get_transport_class("grpc_asyncio")
433434
),

0 commit comments

Comments
 (0)