Skip to content

Commit 7838de2

Browse files
authored
refactor: ECP Config schema update. Googlers see go/enterpise-cert-config (#1152)
* refactor: ECP Config schema update. Googlers see go/enterpise-cert-config
1 parent 42f9bd9 commit 7838de2

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

packages/google-auth/google/auth/transport/_custom_tls_signer.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,8 @@ def __init__(self, enterprise_cert_file_path):
192192
193193
{
194194
"libs": {
195-
"signer_library": "...",
196-
"offload_library": "..."
195+
"ecp_client": "...",
196+
"tls_offload": "..."
197197
}
198198
}
199199
"""
@@ -206,8 +206,8 @@ def load_libraries(self):
206206
with open(self._enterprise_cert_file_path, "r") as f:
207207
enterprise_cert_json = json.load(f)
208208
libs = enterprise_cert_json["libs"]
209-
signer_library = libs["signer_library"]
210-
offload_library = libs["offload_library"]
209+
signer_library = libs["ecp_client"]
210+
offload_library = libs["tls_offload"]
211211
except (KeyError, ValueError) as caught_exc:
212212
new_exc = exceptions.MutualTLSChannelError(
213213
"enterprise cert file is invalid", caught_exc
0 Bytes
Binary file not shown.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"libs": {
3-
"signer_library": "/path/to/signer/lib",
4-
"offload_library": "/path/to/offload/lib"
3+
"ecp_client": "/path/to/signer/lib",
4+
"tls_offload": "/path/to/offload/lib"
55
}
6-
}
6+
}

0 commit comments

Comments
 (0)