Currently the getO365PSInitCommands function uses the "about to be deprecated" method of auth via New-PSSession
|
module.exports.getO365PSInitCommands = function(pathToDecryptUtilScript, |
Two new functions should be added to o365Utils.js
- one for the existing way to return backwards compatibility
- a new one for the cert based auth
- existing contract of
getO365PSInitCommands must remain and not break others using this, must be backwards compatible!
- provide a new
getO365PSInitCommands<modern?> version that will hit the cert based auth method
Also update the README w/ this info + docs/examples/comments
https://adamtheautomator.com/exchange-online-powershell-mfa/
https://techcommunity.microsoft.com/t5/exchange-team-blog/modern-auth-and-unattended-scripts-in-exchange-online-powershell/ba-p/1497387
Currently the
getO365PSInitCommandsfunction uses the "about to be deprecated" method of auth viaNew-PSSessionpowershell-command-executor/o365Utils.js
Line 25 in 5101c14
Two new functions should be added to
o365Utils.jsgetO365PSInitCommandsmust remain and not break others using this, must be backwards compatible!getO365PSInitCommands<modern?>version that will hit the cert based auth methodAlso update the README w/ this info + docs/examples/comments
https://adamtheautomator.com/exchange-online-powershell-mfa/
https://techcommunity.microsoft.com/t5/exchange-team-blog/modern-auth-and-unattended-scripts-in-exchange-online-powershell/ba-p/1497387