Skip to content

Commit 70f099f

Browse files
authored
Update cookie.md
1 parent fb17d5c commit 70f099f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

aspnetcore/security/authentication/cookie.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ By [Rick Anderson](https://twitter.com/RickAndMSFT)
1919

2020
For demonstration purposes in the sample app, the user account for the hypothetical user, Maria Rodriguez, is hardcoded into the app. Use the **Email** address `maria.rodriguez@contoso.com` and any password to sign in the user. The user is authenticated in the `AuthenticateUser` method in the `Pages/Account/Login.cshtml.cs` file. In a real-world example, the user would be authenticated against a datastore.
2121

22+
:::moniker-end
2223
:::moniker range=">= aspnetcore-10.0"
2324
[!INCLUDE[](~/includes/api-endpoint-auth.md)]
2425
:::moniker-end
25-
26+
:::moniker range=">= aspnetcore-6.0"
2627
## Add cookie authentication
2728

2829
* Add the Authentication Middleware services with the <xref:Microsoft.Extensions.DependencyInjection.AuthenticationServiceCollectionExtensions.AddAuthentication%2A> and <xref:Microsoft.Extensions.DependencyInjection.CookieExtensions.AddCookie%2A> methods.

0 commit comments

Comments
 (0)