Add http authentication to rest