Skip to content

Commit 92c3d6e

Browse files
GODRIVER-2758 Remove GCP from supplied callback example [master] (#1810)
Co-authored-by: Patrick Meredith <[email protected]>
1 parent 7183c45 commit 92c3d6e

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
@@ -574,16 +574,11 @@ func ExampleConnect_oIDC() {
574574
}, nil
575575
}
576576
uri := os.Getenv("MONGODB_URI")
577-
props := map[string]string{
578-
"ENVIRONMENT": "gcp",
579-
"TOKEN_RESOURCE": "<audience>",
580-
}
581577
opts := options.Client().ApplyURI(uri)
582578
opts.SetAuth(
583579
options.Credential{
584-
AuthMechanism: "MONGODB-OIDC",
585-
AuthMechanismProperties: props,
586-
OIDCMachineCallback: eksCallback,
580+
AuthMechanism: "MONGODB-OIDC",
581+
OIDCMachineCallback: eksCallback,
587582
},
588583
)
589584
c, err := mongo.Connect(opts)

0 commit comments

Comments
 (0)