Problem Statement/Rationale
Attempting to follow the "Authenticate after Connection" instructions in step 3 of the X.509 docs results in an error:
> db.getSiblingDB("$external").auth({mechanism: "MONGODB-X509"}) MongoshInvalidInputError: [COMMON-10001] auth expects user document with 'user' and 'pwd' fields
Steps to Reproduce
Follow the instructions in the docs linked above and choose the "Authenticate after Connection" option rather than "Connect with Authentication".
Expected Results
Authentication succeeds.
Actual Results
Authentication fails with the error shown above.