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 would be to have the same behavior than the option
Connect-PnPOnline -PnPO365ManagementShell -LaunchBrowser
that pass the authentication using the MFA + ADFS properly
Result in a Blank pop up after selecting the account
Connect-PnPOnline -url "tenant" -UseWebLogin (with MFA and ADFS configured)
[3.2.1810.0] SharePointPnPPowerShellOnline
Thanks a lot for your help !
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?
Same issue here.
https://github.com/SharePoint/PnP-PowerShell/issues/1724
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
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.
Most helpful comment
I had the same issue but then used Connect-PnPOnline -ClearTokenCache -SPOManagementShell -Url and was able to connect with ADFS + MFA