[GODRIVER-936] Driver does not fail auth early if credentials are incorrectly formed Created: 05/Apr/19  Updated: 27/Oct/23  Resolved: 07/Aug/20

Status: Closed
Project: Go Driver
Component/s: Authentication
Affects Version/s: 1.0.0
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: David Golden Assignee: Unassigned
Resolution: Gone away Votes: 0
Labels: isabella-close
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

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.


Generated at Thu Feb 08 08:35:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.