# 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.*

![](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/GpdoETMSFyvjWcE5nupH/1-email-source.png)

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

![](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/XZPskWKaeUjMbwXtfBuO/12-Properties.png)

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

![](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/E1UBb3NnrqZmaeSK7laN/2-modern-authentication%20.png)

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

![](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/W9bROciB3IJIarUpYoot/3-provider.png)

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.*

![](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/LFej8XttMB97oVYsGhR7/authentication.png)

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.

![](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/J6l5gDiioGChtw3jfkfc/4-azure-application-credentials.png)

A Sign In window should appear.

9. Provide your Id and click *Next*.

![](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/2rcwD3jTZRN7ISFdrrIR/5-sign-in.png)

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

![](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/3HvKXN1PT3aeOjcB9ah5/6-pw.png)

A message for requested permissions appears.

11. Select *Accept*.

![](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/rW1ejk91TYJ9sp48p9sA/7-permissions.png)

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.

![](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/bvGJREJbVYRa52jWUBp3/11-next.png)

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