Skip to content

Commit feb2f31

Browse files
Update SCRAM auth procedure
Remove the "done" parameter when pattern matching the function that verifies the server signature.
1 parent 94cbe4e commit feb2f31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mongo/auth/scram.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ defmodule Mongo.Auth.SCRAM do
5252
{message, server_signature}
5353
end
5454

55-
defp second(%{"conversationId" => conversation_id, "payload" => payload, "done" => false}, signature) do
55+
defp second(%{"conversationId" => conversation_id, "payload" => payload}, signature) do
5656
params = parse_payload(payload)
5757
^signature = params["v"] |> Base.decode64!
5858
[saslContinue: 1, conversationId: conversation_id, payload: %BSON.Binary{binary: ""}]

0 commit comments

Comments
 (0)