Microsoft 365 Learning Pathways: Add MFA Support
Please add support for Multi Factor Authentication (MFA) with Microsoft 365 Learning Pathways (https://github.com/pnp/custom-learning-office-365). Specifically, update M365lpConfiguration.ps1 (https://github.com/pnp/custom-learning-office-365/blob/master/webpart/M365lpConfiguration.ps1) with a Switch parameter to use MFA (-UseMfa). When the switch is provided, use the -UseWebLogin parameter with Connect-PnPOnline instead the -Credentials parameter. Also, use Parameter Sets to only require the $Credentials object (and ask for them if not supplied) when the MFA switch is not used.
Do the same with TelemetryOptOut.ps1 (https://github.com/pnp/custom-learning-office-365/blob/master/webpart/TelemetryOptOut.ps1)
Thanks for submitting this issue. Script has been updated based on your ask, so we are closing this user voice entry. This was an oversight by the developer which we should have absolutely fixed even faster.