How to Authenticate My web application's backend APIs with Microsoft office word add-in?

I am trying to get an access token from word add-in and send it to my backend and authenticate the word user and connect the account with my web application's account. This is to link the user with their account in my web application.

I tried using:

Office.context.auth.getUserIdentityTokenAsync --> this is deprecated API, so it didnt work.
Office.context.auth.getAccessToken --> is not a function
Office.context.webAuth.getAuthContextAsync --> An internal error has occurred.


Comments

Popular posts from this blog

Spring Elasticsearch Operations

Network Error and Timeout on Authorize.net JS

Object oriented programming concepts (OOPs)