0 votes
by (220 points)

1 Answer

0 votes
by (15.2k points)


you need to login to office365 using OAuth method. To enable two factor authentication, you have to set it on the server side accordingly. This MSDN doc page and others on MSDN might be useful to start with setting your application and registering it on Microsoft to make it possible to obtain and use OAuth token.