Add support for key-based authentication.