0
votes

I need the token in order to use office api discovery service (https://api.office.com/discovery/) to find SharePoint root url. Is it possible to get access to Azure AD token from add-ins (Outlook/Office)?

Edit(To make things more clear): As I'm building a multi-tenant Azure hosted app that should be launched via add-ins, I will have to force users to log-in in popup and give consent for application. Login is mandatory since in office add-in's we cannot find out who the logged in user is.

1

1 Answers

1
votes

You can follow the documentation here on how to retrieve an authorization token - https://graph.microsoft.io/en-us/docs/platform/rest from Azure AD for the use of finding the root URL - also you can use the Microsoft Graph, which is the newer version of the Discovery service (more details about it again at the link provided).