Skip to content

Commit 6bcc3dc

Browse files
authored
Remove GCP from supplied callback example (#1809)
1 parent b133d71 commit 6bcc3dc

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

mongo/client_examples_test.go

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -583,16 +583,11 @@ func ExampleConnect_oIDC() {
583583
}, nil
584584
}
585585
uri := os.Getenv("MONGODB_URI")
586-
props := map[string]string{
587-
"ENVIRONMENT": "gcp",
588-
"TOKEN_RESOURCE": "<audience>",
589-
}
590586
opts := options.Client().ApplyURI(uri)
591587
opts.SetAuth(
592588
options.Credential{
593-
AuthMechanism: "MONGODB-OIDC",
594-
AuthMechanismProperties: props,
595-
OIDCMachineCallback: eksCallback,
589+
AuthMechanism: "MONGODB-OIDC",
590+
OIDCMachineCallback: eksCallback,
596591
},
597592
)
598593
c, err := mongo.Connect(context.TODO(), opts)

0 commit comments

Comments
 (0)