aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Chmielowski <pchmielowski@process-one.net>2016-03-30 16:08:04 +0200
committerPaweł Chmielowski <pchmielowski@process-one.net>2016-03-30 16:08:04 +0200
commitb160bd7ac15e7ad946968fa75024cc33f3a30086 (patch)
tree55af53d229f4702e280ac4c91d4936e798b4dbbc
parentTravis CI: Cosmetic changes to Riak setup commands (diff)
Provide authzid in scream response16.03
-rw-r--r--src/cyrsasl_scram.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cyrsasl_scram.erl b/src/cyrsasl_scram.erl
index 059938f5e..18f52b48f 100644
--- a/src/cyrsasl_scram.erl
+++ b/src/cyrsasl_scram.erl
@@ -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}