diff --git a/src/kpro_scram.erl b/src/kpro_scram.erl index 066d9bf..25ad709 100644 --- a/src/kpro_scram.erl +++ b/src/kpro_scram.erl @@ -67,7 +67,7 @@ parse(#{ sha := Sha <> = ServerNonce, Salt = base64:decode(Salt0), SaltedPassword = hi(Sha, Password, Salt, Iterations), - FinalNoProof = bin([?CHANNEL_BINDING, ",r=", Salt]), + FinalNoProof = bin([?CHANNEL_BINDING, ",r=", ServerNonce]), AuthMsg = [ClientFirstMsgBare, ",", ServerFirstMsg, ",", FinalNoProof], #{ sha => Sha , salted_password => SaltedPassword