Skip to content

Commit 6e95d01

Browse files
committed
2.3.10 release
1 parent 0dc9274 commit 6e95d01

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

examples/sharepoint/files/download_file.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@
1010
download_path = os.path.join(tempfile.mkdtemp(), os.path.basename(file_url))
1111
with open(download_path, "wb") as local_file:
1212
file = ctx.web.get_file_by_server_relative_path(file_url).download(local_file).execute_query()
13+
#file = ctx.web.get_file_by_server_relative_url(file_url).download(local_file).execute_query()
1314
print("[Ok] file has been downloaded into: {0}".format(download_path))

office365/runtime/auth/authentication_context.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def __init__(self, authority_url):
1717
self.authority_url = authority_url
1818
self._provider = None
1919

20-
def with_client_certificate(self, tenant, client_id, thumbprint, cert_path,**kwargs):
20+
def with_client_certificate(self, tenant, client_id, thumbprint, cert_path, **kwargs):
2121
"""Creates authenticated SharePoint context via certificate credentials
2222
2323
:param str tenant: Tenant name, for example {}@
@@ -30,7 +30,7 @@ def with_client_certificate(self, tenant, client_id, thumbprint, cert_path,**kwa
3030
def _acquire_token_for_client_certificate():
3131
authority_url = 'https://login.microsoftonline.com/{0}'.format(tenant)
3232
credentials = {"thumbprint": thumbprint, "private_key": open(cert_path).read()}
33-
scopes=kwargs.get('scopes',["{url}/.default".format(url=self.authority_url)])
33+
scopes = kwargs.get('scopes', ["{url}/.default".format(url=self.authority_url)])
3434
import msal
3535
app = msal.ConfidentialClientApplication(
3636
client_id,

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
setup(
1212
name="Office365-REST-Python-Client",
13-
version="2.3.9",
13+
version="2.3.10",
1414
author="Vadim Gremyachev",
1515
author_email="[email protected]",
1616
maintainer="Konrad Gądek, Domenico Di Nicola",

0 commit comments

Comments
 (0)