Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-1544

Improve Error Message on OIDC Connection

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: OIDC DB Auth
    • None
    • 2

      Problem Statement/Rationale

      Currently when user tries to connect a cluster w/ version below 7.0, the error on mongosh is not clear. It can take a while to understand the root cause.

      Steps to Reproduce

      Connect to MongoDB 6 with authentication type MONGODB-OIDC.

      Expected Results

      The error indicates the server/cluster version does not support MONGODB-OIDC authentication type and it should be 7.0 and above. 

      Actual Results

      Current Error: 

      Received authentication for mechanism MONGODB-OIDC which is not enabled 

       

      Additional Notes

      Any additional information that may be useful to include.

            Assignee:
            Unassigned Unassigned
            Reporter:
            fuat.ertunc@mongodb.com Fuat Ertunc
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: