Registering Application in Microsoft Identity Platform
To register an application in Microsoft Identity platform, do the following:
- Sign in to the Microsoft Entra admin center using an account that you want to use for sending emails. The account must have an active subscription.
- Register an application. To do this, go to Entra ID > App registrations, and then click New registration. For more information on registering applications, see this Microsoft article.
- In the Manage section, select API permissions and grant the application the Mail.Send permission of the Application type for Microsoft Graph.
- Click Grant admin consent for <tenant_name> and confirm the operation.
- In the Manage section, select Authentication.
- On the Redirect URI configuration tab, click Add Redirect URI.
- In the Select a platform to add redirect URI pane, select Mobile and desktop applications, specify http://localhost as a redirect URI, and then click Configure. For more information, see this Microsoft article.
- On the Overview page, record the following data required for acquiring an access token:
- Directory (tenant) ID
- Application (client) ID