Added support for file based authentication.