Hi Team, I am trying to automatically authenticate my node js application which is deployed on Azure once user login to outlook. The application is to read emails so it should automatically start email reading once user login outlook.

Tan 0 Reputation points
2024-09-17T02:30:09.14+00:00

Hi Team, I am trying to automatically authenticate my node js application which is deployed on Azure once user login to outlook. The application is to read emails so it should automatically start email reading once user login outlook. Also please discuss about timeout.

Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} votes

1 answer

Sort by: Most helpful
  1. James Hamil 27,211 Reputation points Microsoft Employee Moderator
    2024-09-25T21:13:06.9433333+00:00

    Hi @Tan , you can use MSAL for this: https://learn.microsoft.com/en-us/azure/active-directory-b2c/enable-authentication-in-node-web-app

    This document does a good job detailing the process of achieving this.

    Then you can use the Graph API to read and send emails through Outlook: https://efethegenius.medium.com/connect-and-fetch-emails-from-outlook-using-node-js-javascript-a-step-by-step-guide-f306a3b0a01b

    Please let me know if you have any questions and I can help you further.

    If this answer helps you please mark "Accept Answer" so other users can reference it.

    Thank you,

    James


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.