Teams Desktop not allowing request to protected Azure WebAPI

Copper Contributor

Scenario

I have a simple application setup. An Angular SPA front-end and an ASP.NET Core WebAPI. The Angular front-end application has been registered and loaded into Microsoft Teams. One of the Angular app's features is to request data from an Azure hosted ASP.NET Core WebAPI. The WebAPI is protected using Microsoft Identity Platform. 

 

Issue

In the Microsoft Teams WEB application all is worked as expected. The SSO service I've created works and MSAL in the Angular App is picking up the access_token and successfully authenticates to the ASP.NET Core WebAPI to retrieve the protected payload. 

 

WHY IS THIS NOT WORKING INSIDE THE TEAMS DESKTOP APPLICATION?

 

What does work is making a request to a PUBLIC (un-protected) webapi. But for PROD, this is NOT an option. 

 

Please help! I've been working on this for too long.

 

Regards,

Tolga

 

 

 

2 Replies

kemaltolga - Could you please refer below sample and let us know if you have any query.
Microsoft-Teams-Samples/samples/tab-sso/csharp at main · OfficeDev/Microsoft-Teams-Samples (github.c...

@kemaltolga - Could you please confirm is your issue resolved or are you still facing the issue.