Added basic oauth login and test.