Unable to authenticate Microsoft OIDC using MongoDB Compass

Suddenly I am unable to connect to my Mongo clusters via Compass. It is reporting the following errors:

{“t”:{“$date”:“2024-09-04T15:04:32.145Z”},“s”:“D1”,“c”:“Connection Attempt”,“id”:1001000279,“ctx”:“connect”,“msg”:“connection attempt failed”,“attr”:{“stack”:“Error: Unable to fetch issuer metadata for "https://login.microsoftonline.com/some-guid/v2.0\”: certificate has expired\n at S.getOIDCClient (file:///C:/Users/VaibhavPingle/AppData/Local/MongoDBCompass/app-1.44.0/resources/app.asar/build/37.92e2f69cd453e43fac94.renderer.js:1:127371)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async file:///C:/Users/VaibhavPingle/AppData/Local/MongoDBCompass/app-1.44.0/resources/app.asar/build/37.92e2f69cd453e43fac94.renderer.js:1:132008\n at async e.withAbortCheck (file:///C:/Users/VaibhavPingle/AppData/Local/MongoDBCompass/app-1.44.0/resources/app.asar/build/37.92e2f69cd453e43fac94.renderer.js:1:145124)\n at async S.authorizationCodeFlow (file:///C:/Users/VaibhavPingle/AppData/Local/MongoDBCompass/app-1.44.0/resources/app.asar/build/37.92e2f69cd453e43fac94.renderer.js:1:131855)\n at async S.initiateAuthAttempt (file:///C:/Users/VaibhavPingle/AppData/Local/MongoDBCompass/app-1.44.0/resources/app.asar/build/37.92e2f69cd453e43fac94.renderer.js:1:134397)\n at async S.requestToken (file:///C:/Users/VaibhavPingle/AppData/Local/MongoDBCompass/app-1.44.0/resources/app.asar/build/37.92e2f69cd453e43fac94.renderer.js:1:136395)\n at async file:///C:/Users/VaibhavPingle/AppData/Local/MongoDBCompass/app-1.44.0/resources/app.asar/build/12.c2d6d57ebbacbc73a597.renderer.js:134:573978\n at async c.callback (file:///C:/Users/VaibhavPingle/AppData/Local/MongoDBCompass/app-1.44.0/resources/app.asar/build/12.c2d6d57ebbacbc73a597.renderer.js:134:573992)\n at async c.executeAndValidateCallback (file:///C:/Users/VaibhavPingle/AppData/Local/MongoDBCompass/app-1.44.0/resources/app.asar/build/12.c2d6d57ebbacbc73a597.renderer.js:134:573459)“,“name”:“Error”,“message”:“Unable to fetch issuer metadata for "https://login.microsoftonline.com/some-guid/v2.0\”: certificate has expired”,“code”:null}}
{“t”:{“$date”:“2024-09-04T15:05:22.300Z”},“s”:“I”,“c”:“COMPASS-MAIN”,“id”:1001000003,“ctx”:“app”,“msg”:“Closing application”}

Hi @Vaibhav_Pingle! I assume you were using Compass to log into your clusters with OIDC, is that correct? Did this start happening with 1.44.0 specifically (you can find older versions of Compass in Releases · mongodb-js/compass · GitHub)?

Hi @Vaibhav_Pingle – to give you a quick update, we just released v1.44.2-beta.0 with a potential fix for this issue. You can download it at Release 1.44.2-beta.0 · mongodb-js/compass · GitHub – it would be tremendously helpful if you could try this out and report back to us!