Replace ',' (comma) with =2C instead of =2D in username for SCRAM-SHA-1 authentication
@@ -281,7 +281,7 @@ class ScramSha1Authenticator extends SaslAuthenticator {
}
private String prepUserName(final String userName) {
- return userName.replace("=", "=3D").replace(",", "=2D");
+ return userName.replace("=", "=3D").replace(",", "=2C");
}
private byte[] xor(final byte[] a, final byte[] b) {
