If we connect-pnponline to our On-Prem SharePoint 2019 (behind ADFS and WAP) via -UseWebLogin (works) and than call e.g. Get-PnPSite, the Request of the Cmdlet gets redirected (seen in fiddler) to Authenticate again by Web Application Proxy. Because of that, the Cmdlet fails.
Expected behavior
The cmdlet should use all cookies (fedauth & edgeaccess) from the connection, to be able to pass the ADFS Proxy.
Actual behavior
Cmdlet doing requests just with the fedauth cookie, not how expected with fedauth and edgeaccesscookie.
Steps to reproduce behavior
The Issue reproduces if the cmdlet has to pass Web Application Proxy, which is publishing SharePoint, configured with Preauthentication on ADFS.
Which version of the PnP-PowerShell Cmdlets are you using?
[ ] PnP PowerShell for SharePoint 2013
[ ] PnP PowerShell for SharePoint 2016
[x ] PnP PowerShell for SharePoint 2019
[ ] PnP PowerShell for SharePoint Online
What is the version of the Cmdlet module you are running?
3.17.2001.2
How did you install the PnP-PowerShell Cmdlets?
[ ] MSI Installed downloaded from GitHub
[x ] Installed through the PowerShell Gallery with Install-Module
Reporting an Issue or Missing Feature
If we connect-pnponline to our On-Prem SharePoint 2019 (behind ADFS and WAP) via -UseWebLogin (works) and than call e.g. Get-PnPSite, the Request of the Cmdlet gets redirected (seen in fiddler) to Authenticate again by Web Application Proxy. Because of that, the Cmdlet fails.
Expected behavior
The cmdlet should use all cookies (fedauth & edgeaccess) from the connection, to be able to pass the ADFS Proxy.
Actual behavior
Cmdlet doing requests just with the fedauth cookie, not how expected with fedauth and edgeaccesscookie.
Steps to reproduce behavior
The Issue reproduces if the cmdlet has to pass Web Application Proxy, which is publishing SharePoint, configured with Preauthentication on ADFS.
Which version of the PnP-PowerShell Cmdlets are you using?
What is the version of the Cmdlet module you are running?
3.17.2001.2
How did you install the PnP-PowerShell Cmdlets?