Skip to content

Commit 8c8a5c9

Browse files
authored
Fix code block in description to make schema happy.
1 parent e9750b7 commit 8c8a5c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sharepoint/sharepoint-ps/sharepoint-pnp/Connect-PnPOnline.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,9 @@ If no credentials have been specified, and the CurrentCredentials parameter has
247247
>Failed to connect to (site), Exception calling "ExecuteQuery" with "0" argument(s): "Cannot contact web site (site) or the web site does not support SharePoint Online credentials. The response status code is 'Unauthorized'. The response headers are 'X-SharePointHealthScore=0, X-MSDAVEXT_Error=917656; Access+denied.+Before+opening+files+in+this+location%2c+you+must+first+browse+to+the+web+site+and+select+the+option+to+login+automatically.
248248
249249
You can determine whether the SharePoint Online Tenant has disabled legacy authentication methods by running the following powershell snippet
250-
```powershell
250+
`
251251
(Get-PnPTenant).LegacyAuthProtocolsEnabled
252-
```
252+
`
253253
and if this returns False, then legacy authentication methods have been disabled on the tenant that you are connecting to.
254254

255255
This will then instead mean that you need to ensure that you specify the appropriate options that support modern authentication, such as connections with the "-UseWebLogin" or "-PnPO365ManagementShell" parameters or certificate based authentication.

0 commit comments

Comments
 (0)