Here are the changes to get authentication working

I couldn't get it working because of NotImplementedException. So yes, I am checking in a bad build.