OAuth2 authorization with access tokens is supported for Microsoft Exchange (EWS), POP3, IMAP and SMTP connections.
Sign on to your established Microsoft Azure account at https://portal.azure.com/#home. Your screen will look like this:
Click the Manage Azure Active Directory View button. If you have already established your Microsoft email account, you will already have a Tenant ID, and you should use this. It can be viewed on the App registration screen. If you need to create a Tenant ID, click on Manage Tenants and then Create. Provide the information required by Microsoft, such as your band Initial Domain Name. Once configured, you will have a Tenant ID, as shown in the following screen. If you have not already done so, copy down the value of the Tenant ID as this is needed when configuring ExtraView.
Now, use the Add, App registration option to register ExtraView as the application which will be granted access.
The platform must be Web and the Redirect URI must be:
https://yourextraviewurl.com/evj/OAuth2?p_action=getTokenReturn&p_option=admin.EmailTokenUtility
where https://yourextraviewurl.com/evj
is the path to your ExtraView instance.
On the Overview screen, note down the Application (Client) ID and the Directory (tenant) ID if you have not already done so. These will be required when you configure the ExtraView Token interface.
The next step is to configure the application, and to add a client secret.
The next step in configuring the API and Office 365 Exchange permissions of the Microsoft Azure application. The specific permissions may depend on your requirements of the email server, but the following provides the permissions you are likely to need.
From the App registrations screen:
Save the settings. with the Add button and then click on Grant admin consent to complete setting the permissions.
You will then select a user to use with this application. It is likely the user already exists, but if not, you will create a new user to access the application. From the Azure navigation bar enter the Users screen and choose an existing user, or create a new one.
The user name used must be the email address(es) configured within ExtraView. For EVMail, this is the address used to sign on and retrieve emails from the Azure server. For BatchMail, this is the email address used to authenticate for outgoing email.
This user must be assigned to the application. From the list of Enterprise Applications, choose the application you created, Assign users and groups and then add the user to the application.