This repository was archived by the owner on Dec 31, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
google/cloud/kms_v1/services/key_management_service/transports Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 2424from google .api_core import gapic_v1 # type: ignore
2525from google .api_core import retry as retries # type: ignore
2626from google .auth import credentials as ga_credentials # type: ignore
27- from google .oauth2 import service_account # type: ignore
27+ from google .oauth2 import service_account # type: ignore
2828
2929from google .cloud .kms_v1 .types import resources
3030from google .cloud .kms_v1 .types import service
@@ -119,9 +119,11 @@ def __init__(
119119 credentials , _ = google .auth .default (
120120 ** scopes_kwargs , quota_project_id = quota_project_id
121121 )
122-
122+
123123 # If the credentials is service account credentials, then always try to use self signed JWT.
124- if isinstance (credentials , service_account .Credentials ) and hasattr (service_account .Credentials , "with_always_use_jwt_access" ):
124+ if isinstance (credentials , service_account .Credentials ) and hasattr (
125+ service_account .Credentials , "with_always_use_jwt_access"
126+ ):
125127 credentials = credentials .with_always_use_jwt_access (True )
126128
127129 # Save the credentials.
You can’t perform that action at this time.
0 commit comments