25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00

Provide authzid in scream response

This commit is contained in:
Paweł Chmielowski 2016-03-30 16:08:04 +02:00
parent bf79f223df
commit b160bd7ac1

View File

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