[SERVER-30458] Remove dead code from JS client db.auth() workflow allowing three args Created: 01/Aug/17  Updated: 30/Oct/23  Resolved: 02/Aug/17

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 3.5.11

Type: Task Priority: Trivial - P5
Reporter: Sara Golemon Assignee: Sara Golemon
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Platforms 2017-08-21
Participants:

 Description   

The raw mongoAuth() interface in the JS driver understands a three arg call as mongo.auth(db, user, pass) which is hardcoded to MONGODB-CR.

In practice this is never reached since db.js normalizes calls to db.auth() into just the one (object) or two (string,string) arg forms (the latter being translated into the former by the JS helper code).

This diff removes the dead code path and simplifies the C++/JS connector.



 Comments   
Comment by Githook User [ 10/Aug/17 ]

Author:

{'name': 'Sara Golemon', 'email': 'sara.golemon@mongodb.com'}

Message: SERVER-30458 Dead code elimitation in mozjs::auth
Branch: master
https://github.com/mongodb/mongo/commit/443a8f1af11374d8d8e3a35492415f8464987d54

Generated at Thu Feb 08 04:23:53 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.