Skip to content

Commit

Permalink
Fix SASL response for PLAIN authentication (#1942)
Browse files Browse the repository at this point in the history
  • Loading branch information
b1ron authored Feb 9, 2023
1 parent 6cbcad6 commit 0da05ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/handlers/pg/msg_saslstart.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,13 @@ func (h *Handler) MsgSASLStart(ctx context.Context, msg *wire.OpMsg) (*wire.OpMs
return nil, lazyerrors.Error(err)
}

var emptyPayload types.Binary
var reply wire.OpMsg
must.NoError(reply.SetSections(wire.OpMsgSection{
Documents: []*types.Document{must.NotFail(types.NewDocument(
"conversationId", int32(1),
"done", true,
"payload", emptyPayload,
"ok", float64(1),
))},
}))
Expand Down

0 comments on commit 0da05ad

Please sign in to comment.