【发布时间】:2020-11-17 06:56:39
【问题描述】:
我关注这篇文章:develop-mobile-apps-with-csharp-and-azure 用于将我已经具有功能的 Xamarin 应用程序与一些管理员使用的小型网站相结合。在文章中,我们只需要在我的web.config中添加这个即可:
<authentication mode="Forms">
<forms loginUrl="/.auth/login/aad" defaultUrl="/Home" timeout="480"/>
</authentication>
这个添加效果很好,但是在登录并点击 Azure 提供的丑陋链接“返回给你的网站”后,我总是在网站的根目录上得到重定向(显示:这个移动应用程序已启动并正在运行)。我尝试添加 defaultUrl 以重定向到 /Home 页面但没有成功。 有什么想法吗?
【问题讨论】:
标签: azure asp.net-web-api azure-web-app-service azure-mobile-services