Skip to content

Commit f85a588

Browse files
Release 2.3.0 minor patches
1 parent eebcfea commit f85a588

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ The following auth flows are supported:
5454
```
5555
Documentation: refer [Granting access using SharePoint App-Only](https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-apponly-azureacs) for a details
5656
57-
Example: [connect_with_app_principal.py](Office365-REST-Python-Client/blob/master/examples/sharepoint/connect_with_app_principal.py)
57+
Example: [connect_with_app_principal.py](examples/sharepoint/connect_with_app_principal.py)
5858
5959
- user credentials flow: `ClientContext.with_credentials(user_credentials)`
6060
@@ -63,13 +63,13 @@ The following auth flows are supported:
6363
user_credentials = UserCredential('{username}'),'{password}')
6464
ctx = ClientContext('{url}').with_credentials(user_credentials)
6565
```
66-
Example: [connect_with_user_credential.py](Office365-REST-Python-Client/blob/master/examples/sharepoint/connect_with_user_credential.py)
66+
Example: [connect_with_user_credential.py](examples/sharepoint/connect_with_user_credential.py)
6767
6868
- certificate credentials flow: `ClientContext.with_certificate(tenant, client_id, thumbprint, cert_path)`
6969
7070
Documentation: [Granting access via Azure AD App-Only](https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-apponly-azuread)
7171
72-
Example: [connect_with_client_certificate.py](Office365-REST-Python-Client/blob/master/examples/sharepoint/connect_with_client_certificate.py)
72+
Example: [connect_with_client_certificate.py](examples/sharepoint/connect_with_client_certificate.py)
7373
7474
#### Examples
7575
@@ -121,13 +121,13 @@ print("Web title: {0}".format(web_title))
121121
The list of examples:
122122

123123
- Working with files
124-
- [download a file](Office365-REST-Python-Client/blob/master/examples/sharepoint/files/download_file.py)
125-
- [upload a file](Office365-REST-Python-Client/blob/master/examples/sharepoint/files/upload_file.py)
124+
- [download a file](examples/sharepoint/files/download_file.py)
125+
- [upload a file](examples/sharepoint/files/upload_file.py)
126126

127127
- Working with lists and list items
128-
- [create a list item](Office365-REST-Python-Client/blob/master/examples/sharepoint/lists_and_items/data_generator.py)
129-
- [read a list item](Office365-REST-Python-Client/blob/master/examples/sharepoint/lists_and_items/read_large_list.py)
130-
- [update a list item](Office365-REST-Python-Client/blob/master/examples/sharepoint/lists_and_items/update_items_batch.py)
128+
- [create a list item](examples/sharepoint/lists_and_items/data_generator.py)
129+
- [read a list item](examples/sharepoint/lists_and_items/read_large_list.py)
130+
- [update a list item](examples/sharepoint/lists_and_items/update_items_batch.py)
131131
- delete a list item
132132

133133

office365/runtime/auth/authentication_context.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
from office365.runtime.auth.client_credential import ClientCredential
44
from office365.runtime.auth.providers.acs_token_provider import ACSTokenProvider
5-
from office365.runtime.auth.providers.ntlm_provider import NtlmProvider
65
from office365.runtime.auth.providers.oauth_token_provider import OAuthTokenProvider
76
from office365.runtime.auth.providers.saml_token_provider import SamlTokenProvider
87
from office365.runtime.auth.token_response import TokenResponse
@@ -53,6 +52,7 @@ def register_provider(self, credentials_or_token_func, **kwargs):
5352
elif isinstance(credentials_or_token_func, UserCredential):
5453
allow_ntlm = kwargs.get('allow_ntlm', False)
5554
if allow_ntlm:
55+
from office365.runtime.auth.providers.ntlm_provider import NtlmProvider
5656
self._provider = NtlmProvider(credentials_or_token_func.userName,
5757
credentials_or_token_func.password)
5858
else:

0 commit comments

Comments
 (0)