Nested App Authentication and makeEwsRequestAsync()

Panos Chronopoulos 20 Reputation points
2024-12-03T06:41:05.4266667+00:00

Hi, I'm looking to upgrade to NAA some of our legacy Outlook add-ins that use EWS and makeEwsRequestAsync.
Assuming the above calls the getCallbackTokenAsync internally (?), is there a way to instruct it to return a new kind of token or the only way moving forward is to migrate to Graph?

Thanks

Outlook
Outlook
A family of Microsoft email and calendar products.
4,213 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,019 questions
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,652 questions
0 comments No comments
{count} votes

Accepted answer
  1. Xintao Qiao-MSFT 5,085 Reputation points Microsoft Vendor
    2024-12-03T08:23:46.9066667+00:00

     Hi, @Panos Chronopoulos

    Looks like the issue is more related to JavaScript API. Please kindly understand that the Exchange Online Management tag here we mainly focus on general issues about Exchange. To better solve your problem, I will add JavaScript API tag for you.

    Based on my personal advice, the current approach to handling this transition is to migrate to the Graph API. Legacy Exchange tokens, including those obtained via getCallbackTokenAsync, are being deprecated and will begin shutting down in February 2025. This means that the recommended path in the future is to migrate your add-in to use the Microsoft Graph API, which provides better security and greater application architecture flexibility.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.