Skip to main content

Outlook OAuth Authentication

OAuth is a standard for authorisation in the field of technology, which allows users to authorise an app or service to sign in to another without revealing sensitive information such as usernames or passwords. This article will detail the process of Outlook OAuth authentication.

Step-by-Step Process

  1. Sign in or create an account on Microsoft Azure

  2. Click on View

Step 2 - Outlook OAuth

  1. You will be redirected to this page

Step 3 - Outlook OAuth

  1. Click on Add

Step 4 - Outlook OAuth

  1. Click on App registration

Step 5 - Outlook OAuth

  1. Next fill in the name field

Step 6 - Outlook OAuth

  1. Choose a Supported Account Type

Step 7 - Outlook OAuth

Navigate to Invent ERP

  1. Using the left sidebar menu, under Configuration select Settings

Step 8 - outlook OAuth

  1. Then click on Technical then choose Mail Server then Mail Servers.

Step 9 - outlook OAuth

  1. Press on Add in the top right corner.

Step 10 - Google OAuth

  1. Fill in the Mail Server Description field

Step 11 - Google OAuth

  1. Choose Outlook OAuth Authentication in the Authenticate Using drop-down menu

Step 12 - Outlook OAuth

  1. Fill in the Username field with the email address you used on Microsoft Azure

Step 13 - Outlook OAuth

  1. Copy the OAuth2 Redirect Url

Step 14 - Outlook OAuth

  1. Navigate back to Microsoft Azure

  2. Click on Select a platform and select the Web option

Step 16 - Outlook OAuth

  1. Paste the OAuth2 Redirect Url

Step 17 - Outlook OAuth

  1. Click on Register

Step 18 - Outlook OAuth

  1. You will be redirected to a different page. Click API Permissions

Step 19 - Outlook OAuth

  1. Press Add a permission

Step 20 - Outlook OAuth

  1. Select Microsoft Graph

Step 21 - Outlook OAuth

  1. Choose Delegated Permissions

Step 21 - Outlook OAuth

  1. Under Select Permissions search for and select SMTP.Send and IMAP.AccessAsUser.All

Step 23 - Outlook OAuth

  1. After selecting both permissions, click Add permissions

Step 21 - Outlook OAuth

  1. All permission can be seen under Configured Permissions. Also, User.Read was added automatically.

Step 25 - Outlook OAuth

  1. Press on Overview

Step 26 - Outlook OAuth

  1. Click “on Managed Application in Local Directory

Step 27 - Outlook OAuth

  1. Choose User and groups

Step 28 - Outlook OAuth

  1. Press Add user/group

Step 29 - Outlook OAuth

  1. Choose None Selected

Step 30 - Outlook OAuth

  1. Search for and select users/groups (These are the users that will be sending the emails)

Step 31 - Outlook OAuth

  1. Choose Select

Step 32 - Outlook OAuth

  1. Press Assign

Step 33 - Outlook OAuth

  1. Now click Overview

Step 34 - Outlook OAuth

  1. Click Copy to clipboard under Application ID

Step 35 - Outlook OAuth

  1. Navigate to the Invent ERP Mail Servers Page

  2. Paste it in the Client ID field

Step 37 - Outlook OAuth

  1. Navigate back to Microsoft Azure

  2. Click over here

Step 39 - Outlook OAuth

  1. Click on the app registration

Step 40 - Outlook OAuth

  1. Head to Manage

Step 41 - Outlook OAuth

  1. Click Certificates & secrets

Step 42 - Outlook OAuth

  1. Press on New client secret

Step 43 - Outlook OAuth

  1. Enter a description

Step 44 - Outlook OAuth

  1. Set the expiration date.
  • Also, If this client secret expires, a new one will have to be created and configured. The expiration could lead to a service interruption highlighting the importance of the expiration date.

Step 45 - Outlook OAuth

  1. Press Add

Step 46 - Outlook OAuth

  1. Click Copy to Clipboard under Value

Step 47 - Outlook OAuth

  1. Navigate to the Invent ERP Mail Servers Page

  2. Paste it under Client Secret

Step 49 - Outlook OAuth

  1. Scroll up and click Create

Step 50 - Outlook OAuth

  1. Scroll down and click Connect your Outlook account

Step 51 - Outlook OAuth

  1. You may receive a Permissions Request.If so, press Accept

Step 52 - Outlook OAuth