Identity
Identity

Reputation: 1673

Using Asp.net core security in MVC5?

We are using Adal as authentication library but we would like to use the policy functionality in Asp.Net Core security in our MVC5 application. The idea is to compile the Asp.Net Core library to .NET 4.6. This works! However, now I need to click the authentication things in my owin application.

Just adding the AuthorizeAttribute from the library doesn't work, it is not executed.

I have also read about the ported version from P. Schaeflein, but I would preffer to use the libraries provided by Microsoft.

Anyone an idea how to get this working?

Upvotes: 0

Views: 199

Answers (1)

CRAIG ADAMS
CRAIG ADAMS

Reputation: 31

Asp.net Core / .net core is a total rewrite of asp.net framework and the way it work is very different. For example Asp.net Core is most made around a Dependency Injection. So moving part of a framework that made for Asp.net Core to Asp.net MVC 4.6 made not work and would have to be rebuild to work with Asp.net MVC 4.6.

Upvotes: 1

Related Questions