Skip to content

Commit

Permalink
Fix sasl 'capability_missing' detection (#354)
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsOnlyBinary authored Jan 30, 2023
1 parent c0ee8af commit e6b3ded
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/handlers/registration.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ const handlers = {
// emit 'sasl failed' with reason 'unsupported_mechanism' and disconnect if requested
handleSaslFail(handler, 'unsupported_mechanism');
}
} else if (handler.connection.options.account) {
} else if (saslAuth || handler.connection.options.sasl_mechanism === 'EXTERNAL') {
// The client provided an account for SASL auth but the server did not offer the SASL cap
// emit 'sasl failed' with reason 'capability_missing' and disconnect if requested
handleSaslFail(handler, 'capability_missing');
Expand Down

0 comments on commit e6b3ded

Please sign in to comment.