custom and basic authentication added