OAuth reconfigured to accomodate RESTful api