pnp / PnP-PowerShell

SharePoint PnP PowerShell CmdLets
https://pnp.github.io/powershell
Other
988 stars 662 forks source link

PnP cmdlet doesn´t send edgeaccesscookie to ADFS Proxy #2503

Open mobidarabbit opened 4 years ago

mobidarabbit commented 4 years ago

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?

ghost commented 4 years ago

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.