
2ihjw (2ihjw) asked a question.
Hi Team
our organisation have recently moved to Okta and we had MFA mandatory to authenticate the apps
earlier we were using IMAP channel to connect office365 email using javamail API
now we recent upgrade we are not able to connect office365
now can you please send me sample code to connect Office365 with okta authentication .

There's a pretty detailed O365 deployment guide. Have you gone through this?