From e41872c8c8647de0964a84bf415b889ab2356183 Mon Sep 17 00:00:00 2001 From: Patrick Meredith Date: Fri, 13 Sep 2024 17:34:26 -0400 Subject: [PATCH] Remove GCP from supplied callback example --- 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 df6f2f25f2..02418d19bd 100644 --- a/mongo/client_examples_test.go +++ b/mongo/client_examples_test.go @@ -583,16 +583,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(context.TODO(), opts)