title: Setup common authentication workflow for standalone webapp and Teams tab using that webapp
body: <p>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?</p>
  <p>The webapp currently uses OWIN middleware (<a href="https://docs.microsoft.com/en-us/azure/active-directory/develop/tutorial-v2-asp-webapp" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/azure/active-directory/develop/tutorial-v2-asp-webapp</a>) to do AAD authentication for users.</p>
  <p>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).</p>
  <p>Thanks!</p>