Add support for key authentication