Skip to content

Commit

Permalink
Response to scram failures with a generic not-authorized
Browse files Browse the repository at this point in the history
  • Loading branch information
NelsonVides committed May 9, 2023
1 parent 2cec977 commit 897d72b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sasl/cyrsasl_scram.erl
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ mech_step(State, ClientIn) ->
Creds1 = mongoose_credentials:extend(Creds0, R),
{ok, Creds1};
{error, Reason, _} ->
{error, Reason}
?LOG_INFO(#{what => scram_authentication_failed, reason => Reason}),
{error, <<"not-authorized">>}
end.

-spec get_scram_attributes(mongooseim:host_type(), jid:jid(), sha()) -> scram_att() | error().
Expand Down

0 comments on commit 897d72b

Please sign in to comment.