We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7183c45 commit 92c3d6eCopy full SHA for 92c3d6e
mongo/client_examples_test.go
@@ -574,16 +574,11 @@ func ExampleConnect_oIDC() {
574
}, nil
575
}
576
uri := os.Getenv("MONGODB_URI")
577
- props := map[string]string{
578
- "ENVIRONMENT": "gcp",
579
- "TOKEN_RESOURCE": "<audience>",
580
- }
581
opts := options.Client().ApplyURI(uri)
582
opts.SetAuth(
583
options.Credential{
584
- AuthMechanism: "MONGODB-OIDC",
585
- AuthMechanismProperties: props,
586
- OIDCMachineCallback: eksCallback,
+ AuthMechanism: "MONGODB-OIDC",
+ OIDCMachineCallback: eksCallback,
587
},
588
)
589
c, err := mongo.Connect(opts)
0 commit comments