Adding authentication support
Adding specs for authentication enabled and disabled