79101203

Date: 2024-10-18 08:26:29
Score: 4.5
Natty:
Report link

Could u share the tips for GCP OIDC with mongodb? I am getting "MongoServerError: Authentication failed." This is all that is required for the App connection right? What about specifying the user that we create in Mongodb with Federated Auth? Would be great if u could offer some insights or examples. Thank you!

const uri = "mongodb+srv://clustername.xxx.mongodb.net/?authMechanism=MONGODB-OIDC"
            + "&authMechanismProperties=ENVIRONMENT:gcp,TOKEN_RESOURCE:<aud>";
Reasons:
  • Blacklisted phrase (0.5): Thank you
  • RegEx Blacklisted phrase (2.5): Could u share
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: mongodbhelpneeded