Setting up OAuth

Register your application

To use OAuth, an application must have an application ID issued by Azure Active Directory.

You need to register GFI Archiver as a public client with Azure Active DirectoryA technology that provides a variety of network services, including LDAP-like directory services..

Follow the below steps to register:

  1. Open a browser and navigate to the Azure Active Directory admin center and login using a personal account (Microsoft Account) or work or school account.
  2. Select Azure Active Directory in the left-hand navigation, then select App registrations under Manage.
  3. Select New registration. On the Register, an application page, set the values as follows.
  4. Set Name to a friendly name for your app - For example, “GFI Archiver”.
  5. Set Supported account types to the choice that makes sense for your scenario.
  6. For Redirect URI, change the dropdown to Public client (mobile & desktop) and set the value to urn:ietf:wg:oauth:2.0:oob. Click Register.
  7. On the next page, copy the value of the Application (Client) ID and save it, you need it later.
  8. Select API permissions in the left-hand navigation under Manage.
  9. Select Add a permission. On the Request API permissions page, select Exchange under Supported legacy APIs.
  10. To use delegated permissions, select Delegated permissions, and then select EWS.AccessAsUser.All under EWS. Click on Add permissions.