add DigestAuthentication for the api endpoint