Implemented REST OAUTH login.