-
Type:
Bug
-
Resolution: Works as Designed
-
Priority:
Major - P3
-
Affects Version/s: 1.49.9
-
Component/s: None
-
None
-
Environment:OS: macOS 15.7.7 (24G720)
node.js / npm versions:
Additional info: Version 1.49.9 (1.49.9)
-
Not Needed
-
None
-
Developer Tools
Problem Statement/Rationale
I am able to login with the following command:
mongosh --authenticationMechanism=MONGODB-OIDC --oidcIdTokenAsAccessToken --oidcFlows=auth-code,device-auth
When I try the following connection string in Compass, I get an error "e is not a function":
mongodb://127.0.0.1:27017/?directConnection=true&authMechanism=MONGODB-OIDC&authMechanismProperties=OIDC_ID_TOKEN_AS_ACCESS_TOKEN:true,OIDC_HUMAN_CALLBACK:auth-code
I am successfully directed to browser login, that login succeeds with matching redirect to compass, Compass UI gives me "e is not a function".
Please be sure to attach relevant logs with any sensitive data redacted.
How to retrieve logs for: Compass; Shell
{"connectionId":0,"error":"e is not a function"}}
_
,"s":"D1","c":"Connection Attempt","id":1001000279,"ctx":"connect","msg":"connection attempt failed","attr":{"stack":"TypeError: e is not a function\n at file:///Applications/MongoDB%20Compass.app/Contents/Resources/app.asar/build/650.287532b68d16a9a2b23c.renderer.js:1:207410\n at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n at async c.callback (file:///Applications/MongoDB%20Compass.app/Contents/Resources/app.asar/build/650.287532b68d16a9a2b23c.renderer.js:1:207418)\n at async c.executeAndValidateCallback (file:///Applications/MongoDB%20Compass.app/Contents/Resources/app.asar/build/650.287532b68d16a9a2b23c.renderer.js:1:206885)\n at async c.fetchAccessToken (file:///Applications/MongoDB%20Compass.app/Contents/Resources/app.asar/build/650.287532b68d16a9a2b23c.renderer.js:1:64081)\n at async c.execute (file:///Applications/MongoDB%20Compass.app/Contents/Resources/app.asar/build/650.287532b68d16a9a2b23c.renderer.js:1:63706)\n at async d.auth (file:///Applications/MongoDB%20Compass.app/Contents/Resources/app.asar/build/650.287532b68d16a9a2b23c.renderer.js:1:179062)\n at async E (file:///Applications/MongoDB%20Compass.app/Contents/Resources/app.asar/build/650.287532b68d16a9a2b23c.renderer.js:1:417377)\n at async t.connect (file:///Applications/MongoDB%20Compass.app/Contents/Resources/app.asar/build/650.287532b68d16a9a2b23c.renderer.js:1:414890)","name":"TypeError","message":"e is not a function","code":null}}_
Steps to Reproduce
Specifically I see "e is not a function" error adding OIDC_HUMAN_CALLBACK.
Expected Results
What do you expect to happen?
Actual Results
What do you observe is happening?
Additional Notes
Any additional information that may be useful to include.