You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation/Connect-PnPOnline.md
+1-25Lines changed: 1 addition & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -666,29 +666,6 @@ Accept pipeline input: False
666
666
Accept wildcard characters: False
667
667
```
668
668
669
-
### -UseWebLogin
670
-
Windows only: Connects to SharePoint using legacy cookie based authentication.
671
-
Notice this type of authentication is limited in its functionality.
672
-
We will for instance not be able to acquire an access token for the Graph, and as a result none of the Graph related cmdlets will work.
673
-
Also some of the functionality of the provisioning engine (Get-PnPSiteTemplate, Get-PnPTenantTemplate, Invoke-PnPSiteTemplate, Invoke-PnPTenantTemplate) will not work because of this reason.
674
-
The cookies will in general expire within a few days and if you use -UseWebLogin within that time popup window will appear that will disappear immediately, this is expected.
675
-
Use -ForceAuthentication to reset the authentication cookies and force a new login.
676
-
677
-
```yaml
678
-
Type: SwitchParameter
679
-
Parameter Sets: Web Login for Multi Factor Authentication
680
-
Aliases:
681
-
682
-
Required: True
683
-
Position: Named
684
-
Default value: False
685
-
Accept pipeline input: False
686
-
Accept wildcard characters: False
687
-
```
688
-
689
-
### -RelativeUrl
690
-
The site-relative URL of the site you're collecting to. Only applies if you're using -UseWebLogin.
691
-
692
669
```yaml
693
670
Type: String
694
671
Parameter Sets: Web Login for Multi Factor Authentication
Will clear the stored authentication information when using -UseWebLogin (Windows Only) or -Interactive (all platforms) and allows you to authenticate again towards a site with different credentials.
697
+
Will clear the stored authentication information when using Interactive login (all platforms) and allows you to authenticate again towards a site with different credentials.
WriteWarning("Consider using -Interactive or -OSLogin instead, which provides better functionality. This will be removed in a future release. See the documentation at https://pnp.github.io/powershell/cmdlets/Connect-PnPOnline.html#interactive-for-multi-factor-authentication");
0 commit comments