Added SASL authentication support.

Review: https://reviews.apache.org/r/14310