# Using Microsoft’s Modern Authentication Method in Email Source Object

Microsoft has recently introduced a new email authentication method called Modern Authentication that uses the [Microsoft Identity Platform](https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-overview) to access emails. This article covers how you can import emails using this new method in Astera.

### Configuration

Let’s configure the *Email Source* object step-by-step using the Modern Authentication technique:

1. Drag the *Email Source* object from *Toolbox > Sources > Email Source* and drop it onto the dataflow designer. If you cannot see the Toolbox, go to *View > Toolbox* or press *Ctrl + Alt + X.*

![](/files/VKGatu6hL2QCwk5KAa3p)

2. The next step is to configure the *Email Source* object. To do this, right-click on the object’s header and select *Properties*.

![](/files/OAu75W2CnTxcfFLGP0XN)

3. The *Email Connection* screen will open. On this screen, select the *Modern Authentication* tab.

![](/files/bffLHekNEmIubVsdtxEB)

4. The next step is to select the *Provider* from the drop-down menu. Currently, we only support one *Provider,* i.e., Azure.

![](/files/KkLM6MsRsYWGEWxR4Jxj)

5. After selecting the Provider, you need to enter Azure Application Credentials. Provide your Application (Client) Id, Redirect URI, and Account Type, and click on *Sign In*.

{% hint style="info" %}
**Note**: To create an application on Azure, access the link below: <https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationsListBlade>
{% endhint %}

6. After creating an application, go to *Manage > Authentication > Add a platform.*

![](/files/aN0E1DsOeU94HOkYpjqf)

7. A Configure platforms tab will appear on the right-hand side. Select *Mobile and desktop applications* here.

![](https://docs.astera.com/projects/centerprise/en/10/_images/mobile-desktop.png)

8. Either select a redirect URI from the list of Redirect URIs or provide a custom one and click on *Configure*.

![](https://docs.astera.com/projects/centerprise/en/10/_images/configure-devices.png)

Now that we have configured application on Azure, let’s go back to Astera.

![](/files/dEqpKsOhj4QVJXJ4xVk8)

A Sign In window should appear.

9. Provide your Id and click *Next*.

![](/files/KYMQov27Mknk0LljjO80)

10. Then, provide your password and select *Sign in*.

![](/files/Hd7NrYocdG9rt1HVFoW4)

A message for requested permissions appears.

11. Select *Accept*.

![](/files/SF0pYI9cyRHo17ovIpPD)

12. Now that you have successfully signed in to your account, click *Next* to proceed to the *Email Source Properties* window to configure the email properties.

![](/files/IJj9Cis7tUiqsPwLoXhT)

This was all about authenticating the *Email Source* object with Azure. To learn more about configuring the *Email* *Source* object further, read [here](/dataflows/sources/email-source.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.astera.com/miscellaneous/using-microsofts-modern-authentication-method-in-email-source-object.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
