oauth_endpoint is now a function