internal/plugin/connectors/tcp/pg/protocol/auth.go
Function handleAuthSCRAM
has 14 return statements (exceeds 7 allowed). Open
Open
func handleAuthSCRAM(username string, password string, connection net.Conn) error {
sc := scram.NewClient(sha256.New, username, password)
sc.Step(nil)
if sc.Err() != nil {
return fmt.Errorf("SCRAM-SHA-256 error: %s", sc.Err().Error())
TODO found Open
Open
// TODO: Also look into SCRAM-SHA-256-PLUS, see https://www.postgresql.org/docs/current/sasl-authentication.html
- Exclude checks