Added authentication for the in_memory provider