def _make_request(self, url, **kwargs):
        """
        Make a request to an OAuth2 endpoint
        """
        response = requests.post(url, **kwargs)
        try:
            return response.json()
        except ValueError:
            pass
        return parse_qs(response.content)
Make a request to an OAuth2 endpoint