Add HTTP Authentication to api methods.