Add support for authentication.