Creating an application in Azure Active Directory
- Start the Azure portal (https://portal.azure.com) and log in with your Microsoft account
- Select ‘Microsoft Entra ID’ in Azure services
Copy and paste the tenant id, it will be needed to configure the email profile (ie tenant id)
- Select ‘App registrations’ on the left
- Click on ‘new registration'
Enter a Name, select a Supported account type and click on ‘Register’.
You will be taken to the page for the application you have just created
Copy the ID from ‘Application (client) ID’, which you will need to configure the email profile (application ID).
- Select ‘API Permissions’ on the left
You need to add the following rights
- Delegate API
Click on ‘add a permission'
Click on Microsoft Graph
Click on ‘Delegated permissons’ and select the following APIs
- IMAP.AccessAsUser.All
- SMTP.Send
Click on ‘Add permisions'
NOTE
If you are not an administrator, you must ask your administrator for consent.
They must go to this page with their account and click on the ‘Grant Admin Consent’ button.
Once you have done this, refresh the page. The API status must be green
- Select ‘Authentication’ on the left'
Click on ‘add a platform'
Click on ‘Mobile and desktop application’.
Select https://login.microsoftonline.com/common/oauth2/nativeclient and click on the ‘configure’ button
- Select ‘Manifest’ on the left
Set the allowPublicClient value to true and click on ‘save’.
Setting up an email profile
- Select the e-mail address from which to retrieve the e-mails
- Select the IMAP protocol
- Enter the IMAP server address = outlook.office365.com
- Enter the name and password of the user who owns the email
- Enter the port = 993
- Tick the SSL box
- Leave the ‘Accept self-signed certificates from’ parameter blank
- Set the verification interval for new mail in seconds
- Set the connection timeout to 0
- Select Microsoft Oauth as the authentication type
- Copy the tenant id you retrieved from Azure into the tenant id field
- Copy the application's ‘Application (client) ID’ into the application's Id field
Once you have finished, remember to restart the ‘geps Mobile’ service to take account of the changes.