I have a SharePoint Online website with a provider-hosted app, and a Web API service which is secured using Azure Active Directory.
I would like to consume the Web API service from the SharePoint app.
Since the user is already authenticated in the SharePoint context, I would like to use their credentials and to "carry" it onwards to the Web API service (instead of prompting the user for username and password).
My Web API is registered in the AAD, and I noticed that the SharePoint app appears in the AAD as well (as a "consented app").
Is it somehow possible to allow access tokens issued for the consented app, to be used when accessing the Web API? Is there any other solution for "carrying" credentials from the SharePoint context to a third-party service?
Thanks!