Skip to content

Add support for 0365 "modern auth" #7

Closed
@bitsofinfo

Description

@bitsofinfo

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

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions