如何将Azure AD身份验证添加到现有的ASP.NET MVC应用程序中? [英] How to add Azure AD Authentication to Existing ASP.NET MVC Application?

查看:71
本文介绍了如何将Azure AD身份验证添加到现有的ASP.NET MVC应用程序中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用Visual Studio 2013的现有ASP.NET MVC应用程序.我遵循了此演练,但是在项目模板中选择 Change Authentication 时,它只涉及一个新的未开发项目, href ="http://www.asp.net/identity/overview/getting-started/developing-aspnet-apps-with-windows-azure-active-directory">使用Windows Azure Active Directory开发ASP.NET应用

I have an existing ASP.NET MVC application using Visual Studio 2013. I followed this walk-through but it only concerns itself with a new greenfield project while selecting Change Authentication in project template: Developing ASP.NET Apps with Windows Azure Active Directory

我对使用OWIN和OpenID Connect Katana模块不感兴趣,因为这些组件存在很多问题,因此我正在等待该技术成熟并解决所有当前问题.

I am not interested in using OWIN and OpenID Connect Katana modules as these components have lots of issues so I am waiting for that technology to mature and render out all the current problems.

我的目标是了解如何在Rick Anderson的文章中将所有组件和配置手动添加到我现有的ASP.NET MVC应用程序中,以实现相同的Azure AD身份验证模型.

I aim is understand how to manually add all the components and configuration to my existing ASP.NET MVC application to achieve the same Azure AD authentication model in Rick Anderson's article.

推荐答案

VS 2013中的工具不支持将其添加到现有项目中.您在更多信息部分中引用的链接底部是一篇深入的文章,在此我将剖析所添加的代码和配置.因此,您可以以此为参考来找到增量并将其应用于您的项目.

The tooling in VS 2013 doesn't support adding this to an existing project. At the bottom of the link you referenced in the More Information section is a deep dive article where I dissect the code and configuration that gets added. So, you could use that as a reference to find the deltas and apply them to your project.

现在,在这种情况下,Visual Studio 2015为我们提供了一些希望.它当然在预览中,但是您可以尝试一下.在解决方案资源管理器中,右键单击现有项目,然后选择配置Azure AD身份验证选项.

Now, Visual Studio 2015 offers us some hope in this scenario. It's in preview of course, but you may give it a try. In Solution Explorer, right click on your existing project and select the Configure Azure AD Authentication option.

这篇关于如何将Azure AD身份验证添加到现有的ASP.NET MVC应用程序中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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