How to add AD ADRE authentication to an existing ASP.NET MVC application?

I have an existing ASP.NET MVC application using Visual Studio 2013. I followed this walkthrough, but it only affects the new greenfield project when I select Change authentication in the project template: ASP.NET Application Development Using Windows Azure Active Directory

I am not interested in using OWIN and OpenID Connect Katana modules, because these components have many problems, so I wait until this technology ripens and displays all current problems.

I'm trying to figure out how to manually add all the components and settings to an existing ASP.NET MVC application to achieve the same Azure AD authentication model in Rick Anderson's article.

+8
authentication asp.net-mvc azure asp.net-identity
source share
1 answer

The tool in VS 2013 does not support adding this to an existing project. At the bottom of the link that you are referring to in the Additional Information section, there is a deep dive article in which I analyze the added code and configuration. Thus, you can use this as a link to search for deltas and apply them to your project.

Visual Studio 2015 now offers us some hope in this scenario. Of course, in the preview, but you can try. In Solution Explorer, right-click on an existing project and select the Configure Azure AD Authentication option.

enter image description here

+13
source share

All Articles