change OAuth endpoints according to API specs