From 92c3d6e5425fe7b9b3b5c70b18683d9c7c5ffc98 Mon Sep 17 00:00:00 2001 From: "mongodb-drivers-pr-bot[bot]" <147046816+mongodb-drivers-pr-bot[bot]@users.noreply.github.com> Date: Fri, 13 Sep 2024 20:30:07 -0500 Subject: [PATCH] GODRIVER-2758 Remove GCP from supplied callback example [master] (#1810) Co-authored-by: Patrick Meredith --- mongo/client_examples_test.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/mongo/client_examples_test.go b/mongo/client_examples_test.go index 0fa52f55d8..4ba8aebbf7 100644 --- a/mongo/client_examples_test.go +++ b/mongo/client_examples_test.go @@ -574,16 +574,11 @@ func ExampleConnect_oIDC() { }, nil } uri := os.Getenv("MONGODB_URI") - props := map[string]string{ - "ENVIRONMENT": "gcp", - "TOKEN_RESOURCE": "", - } opts := options.Client().ApplyURI(uri) opts.SetAuth( options.Credential{ - AuthMechanism: "MONGODB-OIDC", - AuthMechanismProperties: props, - OIDCMachineCallback: eksCallback, + AuthMechanism: "MONGODB-OIDC", + OIDCMachineCallback: eksCallback, }, ) c, err := mongo.Connect(opts)