Pnp-powershell: Connect-PnPOnline -UseWebLogin MFA + ADFS end up with blank pop up

Created on 15 Oct 2018  路  8Comments  路  Source: pnp/PnP-PowerShell

Reporting an Issue or Missing Feature

When I try to connect to an online tenant that uses ADFS with an account protected with MFA the Log In windows let me pick an account but then the process taking me to my organization sign in page would en up with a blank screen. I have tested with another tenant with no ADFS and an account with MFA and it works great. So I believe this issue is strickly limited to the Connect-PnPOnline -UseWebLogin + MFA + ADFS

Expected behavior

Expected behavior would be to have the same behavior than the option
Connect-PnPOnline -PnPO365ManagementShell -LaunchBrowser
that pass the authentication using the MFA + ADFS properly

Actual behavior

Result in a Blank pop up after selecting the account

Steps to reproduce behavior

Connect-PnPOnline -url "tenant" -UseWebLogin (with MFA and ADFS configured)

Which version of the PnP-PowerShell Cmdlets are you using?

  • [ ] PnP PowerShell for SharePoint Online

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

[3.2.1810.0] SharePointPnPPowerShellOnline

How did you install the PnP-PowerShell Cmdlets?

  • [ ] Installed through the PowerShell Gallery with Install-Module

Thanks a lot for your help !

Most helpful comment

I had the same issue but then used Connect-PnPOnline -ClearTokenCache -SPOManagementShell -Url and was able to connect with ADFS + MFA

All 8 comments

I am having similar issues. Our MFA code goes to our mobile devices but I cannot seem to trigger/connect to the process to produce the text message [or code] in which to enter a code. #1724

Any updates we have same issue of white screen that never closes nor asks for user name and password?

I was working remote, attempting to use VPN (which requires a numerical code before completing the connection due to the MFA). When I've attempted the same cmdlets while in the office connecting to our network directly, it worked fine. I used Connect-PnPOnline -url "tenant" -UseWebLogin without issue.

I also ran into this recently while writing a migration script. While I had 2010 DLLs loaded into powershell's app space, -UseWebLogin failed with a blank popup. You can't have 2010 and 2016 DLLs loaded side by side, so I closed PS down, reopened, used Add-Type for the 2016s and the blank modal problem was gone.

I had the same issue but then used Connect-PnPOnline -ClearTokenCache -SPOManagementShell -Url and was able to connect with ADFS + MFA

I had the same issue but then used Connect-PnPOnline -ClearTokenCache -SPOManagementShell -Url and was able to connect with ADFS + MFA

worked like a charm, moreover overriding SSO policies! not only solved 'blank page' but as well allowed me to logon on different creds on hybrid-joined computer. with -webbrowserlogin it automatically was passing current-user creds.

thx!

I had the same issue but then used Connect-PnPOnline -ClearTokenCache -SPOManagementShell -Url and was able to connect with ADFS + MFA

This didn't work for me. I got the popup to log in, but only for username and password, no MFA. The -WebLogin parameter asks for MFA, but hangs when the details entered.

Was this page helpful?
0 / 5 - 0 ratings