Remove reference to old package in 3.0 section (#20094)

pull/20096/head
Pranav K 2020-10-02 11:23:02 -07:00 committed by GitHub
parent 173daadeb9
commit 99a534caed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -22,8 +22,6 @@ For demonstration purposes in the sample app, the user account for the hypotheti
## Configuration
If the app doesn't use the [Microsoft.AspNetCore.App metapackage](xref:fundamentals/metapackage-app), create a package reference in the project file for the [Microsoft.AspNetCore.Authentication.Cookies](https://www.nuget.org/packages/Microsoft.AspNetCore.Authentication.Cookies/) package.
In the `Startup.ConfigureServices` method, create the Authentication Middleware services with the <xref:Microsoft.Extensions.DependencyInjection.AuthenticationServiceCollectionExtensions.AddAuthentication*> and <xref:Microsoft.Extensions.DependencyInjection.CookieExtensions.AddCookie*> methods:
[!code-csharp[](cookie/samples/3.x/CookieSample/Startup.cs?name=snippet1)]