Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-936

Driver does not fail auth early if credentials are incorrectly formed

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.0.0
    • Component/s: Authentication

      The Go driver is not in compliance with the auth spec, which states: "Drivers SHOULD raise an error as early as possible when detecting invalid values in a credential."

      GODRIVER-920 show us a case where the driver attempts auth only with an authentication source which is not sufficient to construct a valid credential.

      If GODRIVER-920 is considered "works as designed" to attempt authentication based on the presence of an authSource (which I think is an unfortunate "read as written" not "read as intended" situation), it should still error early on credential construction because SCRAM requires a username to be specified and thus the driver should not be attempting a handshake with the database with an invalid credential.

            Assignee:
            Unassigned Unassigned
            Reporter:
            david.golden@mongodb.com David Golden
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: