Setup common authentication workflow for standalone webapp and Teams tab using that webapp

78 views Asked by At

I am trying to integrate an existing ASP.NET MVC web app (domain - azurewebsites.net) within a Teams personal tab. How to setup a common user authentication workflow that works both for the webapp (used through a browser) and Teams Tab?

The webapp currently uses OWIN middleware (https://learn.microsoft.com/en-us/azure/active-directory/develop/tutorial-v2-asp-webapp) to do AAD authentication for users.

This doesn’t work within the teams tab since the login redirect page doesn’t run within an iframe. I need the same source code to support both the standalone website and teams tab (along with authentication).

Thanks!

1

There are 1 answers

0
Nikitha-MSFT On

You can add the authentication using web app for the tab in team. Could you please check this document to add the authentication to your tab. We have three types of authentication methods, You can use any one of that. Also you can check this sample