Enable Auth Source to use a different db for auth for Mongo

Description

By default if no auth source is passed, the client will use the database the user is connecting too.

For some cloud providers (like Mongo Atlas), the user must be authenticated against 'admin' database even though they are accessing some other db.

The goal is to have a backwards compatible setting such that if the current users don't have this setting, it will continue to work.

Despite having the authSource=admin property in the URI, the authenticate call seems to ignore that. Open to ideas if there is a better way to achieve this

There are a couple of other PRs related to this:
https://github.com/edx/cs_comments_service/pull/250
https://github.com/edx/configuration/pull/4131

Status

Assignee

Unassigned

Reporter

Open Source Pull Request Bot

Contributor Name

Nick Gray

Repo

edx/edx-platform

Customer

None

Epic Link

None

OSCM Assignee

None

Platform Map Area (Levels 1 & 2)

None

Platform Map Area (Levels 3 & 4)

None

Priority

Unset
Configure