From 45a764370b6418ee03fb3327474a487c9b30c74c Mon Sep 17 00:00:00 2001 From: Hannah Shi Date: Mon, 2 May 2022 12:57:33 -0700 Subject: [PATCH] fix: add InsecureCredentials to address issue in Cloud Spanner emulator (#5224) --- src/EmulatorTrait.php | 3 ++- src/InsecureCredentialsWrapper.php | 36 ++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 src/InsecureCredentialsWrapper.php diff --git a/src/EmulatorTrait.php b/src/EmulatorTrait.php index cde0216..5d6929d 100644 --- a/src/EmulatorTrait.php +++ b/src/EmulatorTrait.php @@ -44,7 +44,8 @@ private function emulatorGapicConfig($emulatorHost) 'credentials' => \Grpc\ChannelCredentials::createInsecure() ] ] - ] + ], + 'credentials' => new InsecureCredentialsWrapper(), ]; } /** diff --git a/src/InsecureCredentialsWrapper.php b/src/InsecureCredentialsWrapper.php new file mode 100644 index 0000000..ba56d62 --- /dev/null +++ b/src/InsecureCredentialsWrapper.php @@ -0,0 +1,36 @@ +