Configuring OAuth in Azure active directory admin center

Learn how to configure OAuth on Azure active directory.

You can use the OAuth authentication service provided by Azure Active Directory to enable your EWS Managed API applications to access Exchange Online in Office 365.

Below are the steps to configure OAuth on Azure active directory admin center:

Note: For further details, see Microsoft documentation Authenticate an EWS application by using OAuth.

Register your application

  1. Open a browser and navigate to the Azure Active Directory admin center and login using a personal 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.
    Field Description
    Name Set a name for your app.
    Supported account types Select relevant account type.
    Redirect URL (optional) Change the dropdown to Public client (mobile & desktop) and set the value to urn:ietf:wg:oauth:2.0:oob.

  4. Choose Register. On the next page, copy the value of the Application (client) ID and save it. (This saved details is used to enter details on users.xml. For details, see Configuration of users, creation of user.xml).

  5. Select API permissions in the left-hand navigation under Manage.
  6. Select Add a permission. On the Request API permissions page, select Exchange under Supported legacy APIs.

Application permissions

To use Application permissions, follow these additional steps.

  1. Select Application permissions and then select full_access_as_app. Click on Add permissions.

  2. Select Grant admin consent for <org> and accept the consent dialog.

  3. Select Certificates & Secrets in the left-hand navigation under Manage.

  4. Select New client secret, enter a short description and select Add.

  5. Copy the value of the newly added client secret and save it, you need it later. (This saved details is used to enter details on users.xml. For details, see Configuration of users, creation of user.xml).