Updated oauth to simulate password and refresh_token grant types