使用生产URL重定向“工作或学校帐户”在VS中创建的Web应用程序中 [英] Use production URL redirect for "Work or School Accounts" in web app created in VS

查看:86
本文介绍了使用生产URL重定向“工作或学校帐户”在VS中创建的Web应用程序中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以在Visual Studio中创建新的Web表单或MVC应用程序,并将身份验证更改为使用"工作或学校帐户"。并指定我公司使用的O365域名。 当从Visual Studio运行应用程序时,这非常有效,但是当我将应用程序部署到PROD服务器时
,Microsoft auth服务器仍然想要重定向到VS localhost:xxxxx地址。

I can create a new web forms or MVC application in Visual Studio, and change the authentication to use "Work or School Accounts" and specify the O365 domain my company uses.  This works very well when running the app from Visual Studio, however when I deploy the app to a PROD server the Microsoft auth server still wants to redirect to the VS localhost:xxxxx address.

如何更改PROD应用的此配置,以便重定向到我的应用的正确PROD FQDN网址? 在Visual Studio中创建应用程序时,有没有办法可以做到这一点? 或者Azure门户是我唯一能做到这一点的地方吗?

How do I change this config for the PROD app so it redirects to the correct PROD FQDN URL for my app?  Is there a way I can do this when creating the app in Visual Studio?  or is the Azure Portal the only place I can do this?

推荐答案

参考:

使用Azure Active Directory开发ASP.NET应用程序
其中介绍了如何创建配置为使用Azure Active Directory进行登录的ASP.NET应用程序。

Refer: Developing ASP.NET Apps with Azure Active Directory which describes how to create an ASP.NET application that is configured for sign-on with Azure Active Directory.

------------------------------------ -------------------------------------------------- -------------

点击"标记为答案"在帮助您的帖子上,这对其他社区成员有益。


这篇关于使用生产URL重定向“工作或学校帐户”在VS中创建的Web应用程序中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆