Commit 4656dca5 authored by akrherz's avatar akrherz

OF-477 Additional SASL fix related to PR 279

https://github.com/igniterealtime/Openfire/pull/279
parent d7dfd3b6
......@@ -343,10 +343,12 @@ public class SASLAuthentication {
if (ss != null) {
boolean ssComplete = ss.isComplete();
String response = doc.getTextTrim();
if (response.length() > 0){
if (!BASE64_ENCODED.matcher(response).matches()) {
authenticationFailed(session, Failure.INCORRECT_ENCODING);
return Status.failed;
}
}
try {
if (ssComplete) {
authenticationSuccessful(session, ss.getAuthorizationID(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment