Open Authentication Setup
Navigate to:
Mail conversation -> OAuth options
Set the required variables.
For the application to work correctly, it must have the following permissions:
Microsoft Azure application permissions:
When setting up a mailbox, save the mailbox settings first without entering a password. After saving, you can click Sign in with Microsoft
.
Sample configuration: