migrating-aspnet-identity

Convert ASP.NET MVC identity systems to ASP.NET Core Identity.

19|2|Updated May 13, 2026
One-click install
npx skills add https://github.com/microsoft/upgrade-agent-plugins --skill migrating-aspnet-identity
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: migrating-aspnet-identity
Source: https://github.com/microsoft/upgrade-agent-plugins/tree/main/plugins/upgrade-agent/extenders/upgrade-dotnet/upgrade/skills/lazy/web/mvc/migrating-aspnet-identity
Command: npx skills add https://github.com/microsoft/upgrade-agent-plugins --skill migrating-aspnet-identity

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill addresses the challenge of migrating ASP.NET MVC Identity to ASP.NET Core Identity, simplifying the transition for developers and ensuring compatibility with modern application frameworks.

Core Features & Use Cases

  • DbContext Conversion: Converts IdentityDbContext to a compatible form for ASP.NET Core.
  • Service Registration: Handles the registration of DbContext and Identity in Program.cs.
  • Middleware Addition: Ensures proper Identity middleware setup.
  • API Usage Updates: Upgrades API calls across the project.
  • AccountController Refactoring: Updates the AccountController to use the new identity system.
  • OWIN Cleanup: Removes old OWIN identity code.
  • Use Case: Ideal for developers looking to migrate existing applications from ASP.NET MVC Identity to ASP.NET Core Identity without significant code changes.

Quick Start

Use the migrating-aspnet-identity skill to update your project's identity system to ASP.NET Core Identity.

Frequently Asked Questions about migrating-aspnet-identity

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate ASP.NET MVC Identity to ASP.NET Core Identity?

Migrating ASP.NET MVC Identity to ASP.NET Core Identity involves converting IdentityDbContext, updating service registration in Program.cs, adding middleware, refactoring AccountController, and removing old OWIN identity code to ensure modern framework compatibility.

What does converting IdentityDbContext to ASP.NET Core Identity involve?

Converting IdentityDbContext to ASP.NET Core Identity requires adapting it to a compatible form for ASP.NET Core, updating service registration in Program.cs, and ensuring proper Identity middleware setup for the modern application framework.

Do I need to know my original project's DbContext setup to migrate ASP.NET Identity?

Yes, migrating ASP.NET Identity requires knowledge of the original project's DbContext setup and connection strings so the conversion process can properly register the DbContext and Identity services in Program.cs for the ASP.NET Core environment.

What's the best way to handle OWIN cleanup when upgrading to ASP.NET Core Identity?

The best way to handle OWIN cleanup during an ASP.NET Core Identity migration is to remove old OWIN identity code while simultaneously refactoring the AccountController to use the new ASP.NET Core Identity system for authentication and authorization.

Can I update API calls across my project during the ASP.NET Core Identity migration?

Yes, the ASP.NET Core Identity migration process upgrades API usage calls across the entire project, ensuring that all authentication and identity-related API interactions are compatible with the new ASP.NET Core Identity framework.

Why does my ASP.NET MVC Identity migration require AccountController refactoring?

AccountController refactoring is required during ASP.NET MVC Identity migration because the new ASP.NET Core Identity system uses different middleware and service registration patterns, making the old controller logic incompatible without updates to the new identity system.