# 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://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FsWAIOUXnOnAIfeJ54khB%2F1-email-source.png?alt=media\&token=096db9af-5693-45c9-bd12-c138cee5995c)

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://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FJRliDCiRQWQ8mIzCYM6u%2F12-Properties.png?alt=media\&token=dbc90481-5fff-4740-bb6a-9503e9be6dac)

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

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FOFJkDiUCdbRJ2v8AXexw%2F2-modern-authentication%20.png?alt=media\&token=62c084cb-5e68-4dfa-adf8-f443ac7d2d87)

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

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FKrugLEaYdsKiSf4sm5aY%2F3-provider.png?alt=media\&token=6a20cc15-531f-4b2a-81c7-23b52834e534)

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://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FzVxQiAO70obNPssz5Vmy%2Fauthentication.png?alt=media\&token=d03fd492-09c1-46d6-a617-95f46084c5e2)

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://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FhGdOnIQSmCK5NdiEGXCn%2F4-azure-application-credentials.png?alt=media\&token=36a361cc-8687-48dc-929d-a429565e7598)

A Sign In window should appear.

9. Provide your Id and click *Next*.

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2Fg43LaxRQfRKDD3QsBlCG%2F5-sign-in.png?alt=media\&token=c1bf95be-7f0c-4723-bf6e-799db657a80f)

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

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FMCEZvOkGvIsY8IfsuUpv%2F6-pw.png?alt=media\&token=b743bda3-40d8-4020-add1-050e261b09fb)

A message for requested permissions appears.

11. Select *Accept*.

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2F70U8Mi4qAI3Cnyf76wpN%2F7-permissions.png?alt=media\&token=4be056ec-9c79-4e74-a350-7ee9aee22acc)

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://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2Fl1XW48SszK40zdVHVvgt%2F11-next.png?alt=media\&token=f782da08-805b-4dec-9d82-d27e41eaa6b8)

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/astera-data-stack-v10/dataflows/sources/email-source).
