AzureAD / azure-activedirectory-library-for-js

The code for ADAL.js and ADAL Angular has been moved to the MSAL.js repo. Please open any issues or PRs at the link below.
https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/maintenance/adal-angular
Apache License 2.0
627 stars 372 forks source link

Can we get the SharePoint online auth token using outlook token? #810

Closed venkatkonjeti closed 4 years ago

venkatkonjeti commented 6 years ago

I am building a Outlook Add-in using Node JS and it needs get information from SharePoint Online using SharePoint Rest Api because Graph does`t have an option to get the required information.

Question? I need a SharePoint online auth token to call SP Rest Api which I am getting using OAuth flow (implicit flow) after user enters credentials.

Is there a way to get the SharePoint online auth token using Outlook token returned by getCallbackTokenAsync() or getUserIdentityTokenAsync() method?

Thanks, Venkat Konjeti

jmckennon commented 4 years ago

cc @sameerag - Do we have a recommended usage here? Or is this mostly an external usage question?

jasonnutter commented 4 years ago

Closing due to inactivity.