Removing OWIN and Identity Packages

A few months ago, I created an ASP.NET MVC project, and I created it with the default authentication option: "Individual user account", but not specifically.

My project works well, but I don't need any authentication methods, so I don't need Identity and OWIN packages.

Is there a clean way to remove all of them? These packages are not needed by any other functions?

thanks!

+4
source share
1 answer

Just delete some files by deleting some files. First uninstall the following package in the package management console:

PM> uninstall-Package Microsoft.Owin.Security.Facebook
PM> uninstall-Package Microsoft.Owin.Security.Google
PM> uninstall-Package Microsoft.Owin.Security.MicrosoftAccount
PM> uninstall-Package Microsoft.Owin.Security.Twitter
PM> uninstall-Package Microsoft.Owin.Host.SystemWeb
PM> uninstall-Package Microsoft.AspNet.Identity.EntityFramework
PM> uninstall-Package Microsoft.AspNet.Identity.Owin

If everything goes right, your project should clear the following packages:

Microsoft.AspNet.Identity.Core
Microsoft.AspNet.Identity.EntityFramework
Microsoft.AspNet.Identity.Owin
Microsoft.Owin
Microsoft.Owin.Host.SystemWeb
Microsoft.Owin.Security
Microsoft.Owin.Security.Cookies
Microsoft.Owin.Security.Facebook
Microsoft.Owin.Security.Google
Microsoft.Owin.Security.MicrosoftAccount
Microsoft.Owin.Security.OAuth
Microsoft.Owin.Security.Twitter
Owin

, - , .

:

App_Start\IdentityConfig.cs
App_Start\Startup.Auth.cs
Models\IdentityModels.cs
Startup.cs
+16

Source: https://habr.com/ru/post/1605741/


All Articles