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

[OIDC] Better inform Entra ID users of error when missing 'Requested scope' in OIDC config

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: OIDC DB Auth
    • 3
    • Developer Tools

      When setting up OIDC with Entra ID, if 'Requested scopes' (optional field) is not filled with '<client id>/.default', the users trying to authn will seeing Login successful in browser, but authn failed in shell. In the database access history, there will be three entries: one successful, then two failures because the token issuer is STS and not login.microsoft.com. 

      To improve this, do not show 'login successful' on browser. If it's not a security issue, we could also show a more informative error message than 'authn failure' in shell.

        1. Screenshot 2024-06-25 at 3.35.22 PM.png
          653 kB
          Isabelle Williams
        2. Screenshot 2024-06-25 at 3.40.01 PM.png
          94 kB
          Isabelle Williams

            Assignee:
            Unassigned Unassigned
            Reporter:
            isabelle.williams@mongodb.com Isabelle Williams
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: