Skip to content

makeEwsRequestAsync() and legacy token deprecation compatibility #5431

Open
@xxronis

Description

Hi, during our NAA migration and moving to Graph from EWS for our addins, we encoutered limitations regarding Contact list expansion using Graph and maybe more. So we probably need to somehow continue using EWS.

I want to cross check that setting an Authorization header with the new msal token will work for makeEwsRequestAsync() when legacy token are deprecated, like:

return new Promise((resolve, reject) => {
   Office.context.mailbox.makeEwsRequestAsync(ewsPayload, (asyncResult: Office.AsyncResult<string>) => {
       ...
    },
    {
        headers: {
          Authorization: `Bearer ${token}`, // MSAL token
        },
      }
    );
});

So, my questions are:

  1. Will the request above continue to work with Authorization overridden by that header when legacy token are deprecated, or it will continue to internally use legacy token?
  2. If not, should I directly post to EWS with that header in my own request?
  3. Is turning the legacy tokens OFF in a tenant enough to test this end-to-end?

Thank you

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Area: OutlookIssue related to Outlook add-insNeeds: attention 👋Waiting on Microsoft to provide feedback

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions