pnp / powershell

PnP PowerShell
https://pnp.github.io/powershell
MIT License
684 stars 348 forks source link

[BUG] #4338

Closed spplante closed 1 month ago

spplante commented 1 month ago

For some reason, this is an issue that seems to be on my computer only as it works fine for my collegue, but Connect-PnPOnline no longer caches anything when using -UseWebLogin. Subsequent calls to Connect-PnPOnline prompts every single time as if there was no cache at all, while it works fine for my collegue.

From what I understand, it caches credentials using cookies so I double checked my browser settings (Edge & Chrome) and everything seems fine, not sure where else I should check?

Reporting an Issue or Missing Feature

Issue

Expected behavior

I expect the code below to prompt me once, as the second command should use the cached credentials from the first command:

Connect-PnPOnline -Url "https://tenant.sharepoint.com/sites/site1" -UseWebLogin
Connect-PnPOnline -Url "https://tenant.sharepoint.com/sites/site2" -UseWebLogin

Actual behavior

I get prompted every single time.

Steps to reproduce behavior

Unable to reproduce, my collegue has the same PowerShell version (7.4.5), same module version (2.12.0) and gets prompted every time.

What is the version of the Cmdlet module you are running?

2.12.0

Which operating system/environment are you running PnP PowerShell on?