Driver does not fail auth early if credentials are incorrectly formed

XMLWordPrintableJSON

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

      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
              Reporter:
              David Golden
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: