diff options
author | Paweł Chmielowski <pchmielowski@process-one.net> | 2016-03-30 16:08:04 +0200 |
---|---|---|
committer | Paweł Chmielowski <pchmielowski@process-one.net> | 2016-03-30 16:08:04 +0200 |
commit | b160bd7ac15e7ad946968fa75024cc33f3a30086 (patch) | |
tree | 55af53d229f4702e280ac4c91d4936e798b4dbbc | |
parent | Travis CI: Cosmetic changes to Riak setup commands (diff) |
Provide authzid in scream response16.03
-rw-r--r-- | src/cyrsasl_scram.erl | 3 |
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} |