Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-61585

Mongosh triggering an okta 2fa on every single command

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      Problem Statement/Rationale

      When using the legacy mongo shell to connect to a database that is hooked up to use external auth via a provider like okta, the shell will trigger single request to authenticate that will trigger a single 2fa verification. However, when using mongosh, every single command that I run against the database trigger an additional 2fa verification request for some reason. It's almost like mongosh is authenticating on every single command executed in the session

      Steps to Reproduce

      Connect to any mongodb instance that's hooked up to okta as external auth? For example, https://wiki.corp.mongodb.com/display/MMS/Cloud+Dev+and+QA+Environments

      Expected Results

      See above

      Actual Results

      See above

      Additional Notes

      Any additional information that may be useful to include.

            Assignee:
            Unassigned Unassigned
            Reporter:
            vincent.do@mongodb.com Vincent Do
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated: