Corrects oauth2 endpoints to be used