]> granicus.if.org Git - ejabberd/commitdiff
Provide authzid in scream response 16.03
authorPaweł Chmielowski <pchmielowski@process-one.net>
Wed, 30 Mar 2016 14:08:04 +0000 (16:08 +0200)
committerPaweł Chmielowski <pchmielowski@process-one.net>
Wed, 30 Mar 2016 14:08:04 +0000 (16:08 +0200)
src/cyrsasl_scram.erl

index 059938f5e779740a9551375a46c0300ec5e0a4c9..18f52b48fe6b06d272c889bf730f062385fbbf1a 100644 (file)
@@ -159,7 +159,8 @@ mech_step(#state{step = 4} = State, ClientIn) ->
                                         ServerSignature =
                                             scram:server_signature(State#state.server_key,
                                                                    AuthMessage),
-                                        {ok, [{username, State#state.username}],
+                                        {ok, [{username, State#state.username},
+                                              {authzid, State#state.username}],
                                          <<"v=",
                                            (jlib:encode_base64(ServerSignature))/binary>>};
                                     true -> {error, <<"bad-auth">>, State#state.username}