Update identity.md (#17398)

* Update identity.md

* Update identity.md
pull/17408/head
Rick Anderson 2020-03-21 09:51:02 -10:00 committed by GitHub
parent ce21d68d54
commit ce98ca1a6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 3 deletions

View File

@ -3,7 +3,7 @@ title: Migrate Authentication and Identity to ASP.NET Core
author: ardalis
description: Learn how to migrate authentication and identity from an ASP.NET MVC project to an ASP.NET Core MVC project.
ms.author: riande
ms.date: 10/14/2016
ms.date: 3/22/2020
uid: migration/identity
---
# Migrate Authentication and Identity to ASP.NET Core
@ -16,9 +16,13 @@ In the previous article, we [migrated configuration from an ASP.NET MVC project
In ASP.NET MVC, authentication and identity features are configured using ASP.NET Identity in *Startup.Auth.cs* and *IdentityConfig.cs*, located in the *App_Start* folder. In ASP.NET Core MVC, these features are configured in *Startup.cs*.
Install the `Microsoft.AspNetCore.Identity.EntityFrameworkCore` and `Microsoft.AspNetCore.Authentication.Cookies` NuGet packages.
Install the the following NuGet packages:
Then, open *Startup.cs* and update the `Startup.ConfigureServices` method to use Entity Framework and Identity services:
* `Microsoft.AspNetCore.Identity.EntityFrameworkCore`
* `Microsoft.AspNetCore.Authentication.Cookies`
* `Microsoft.EntityFrameworkCore.SqlServer`
In *Startup.cs*, update the `Startup.ConfigureServices` method to use Entity Framework and Identity services:
```csharp
public void ConfigureServices(IServiceCollection services)