diff --git a/O365/connection.py b/O365/connection.py index b9c7815456b4..ac590450d072 100644 --- a/O365/connection.py +++ b/O365/connection.py @@ -420,7 +420,7 @@ def request_token(self, authorization_url, store_token=True, raise RuntimeError("Fist call 'get_authorization_url' to " "generate a valid oauth object") - client_id, client_secret = self.auth + _, client_secret = self.auth # Allow token scope to not match requested scope. # (Other auth libraries allow this, but Requests-OAuthlib @@ -432,7 +432,7 @@ def request_token(self, authorization_url, store_token=True, self.token = self.session.fetch_token( token_url=self._oauth2_token_url, authorization_response=authorization_url, - client_id=client_id, + include_client_id=True, client_secret=client_secret) except Exception as e: log.error('Unable to fetch auth token. Error: {}'.format(str(e))) diff --git a/requirements-dev.txt b/requirements-dev.txt index bcf39298c86a..b525f4929436 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -2,7 +2,7 @@ beautifulsoup4>=4.0.0 python-dateutil>=2.7 pytz>=2018.5 requests>=2.0.0 -requests-oauthlib>=1.0.0 +requests-oauthlib>=1.2.0 stringcase>=1.2.0 tzlocal>=1.5.0 Click>=7.0 diff --git a/requirements.txt b/requirements.txt index 2458b1427f2e..e0fb270edf8d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ requests>=2.0.0 -requests_oauthlib>=1.0.0 +requests_oauthlib>=1.2.0 python-dateutil>=2.7 pytz>=2018.5 tzlocal>=1.5.0 diff --git a/setup.py b/setup.py index 621e974b4dac..b537e033ef9a 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ from setuptools import setup, find_packages -VERSION = '1.0.4' +VERSION = '1.0.5' # Available classifiers: https://pypi.org/pypi?%3Aaction=list_classifiers CLASSIFIERS = [ @@ -30,7 +30,7 @@ def read(fname): requires = [ 'requests>=2.0.0', - 'requests_oauthlib>=1.0.0', + 'requests_oauthlib>=1.2.0', 'python-dateutil>=2.7', 'pytz>=2018.5', 'tzlocal>=1.5.0',