AspNetCore.Docs/aspnetcore/security/cookie-sharing/sample
Luke Latham 2573b3b9d9 Move cookie sharing topic to Security (#5668) 2018-03-13 08:38:44 -05:00
..
CookieAuth.Core Move cookie sharing topic to Security (#5668) 2018-03-13 08:38:44 -05:00
CookieAuthWithIdentity.Core Move cookie sharing topic to Security (#5668) 2018-03-13 08:38:44 -05:00
CookieAuthWithIdentity.NETFramework/CookieAuthWithIdentity.NETFramework Move cookie sharing topic to Security (#5668) 2018-03-13 08:38:44 -05:00
KeyRing Move cookie sharing topic to Security (#5668) 2018-03-13 08:38:44 -05:00
README.md Move cookie sharing topic to Security (#5668) 2018-03-13 08:38:44 -05:00

README.md

Cookie Sharing Sample App

The sample illustrates cookie sharing across three apps that use cookie authentication:

Project Description
CookieAuth.Core ASP.NET Core 2.0 Razor Pages app without using ASP.NET Core Identity
CookieAuthWithIdentity.Core ASP.NET Core 2.0 MVC app with ASP.NET Core Identity
CookieAuthWithIdentity.NETFramework ASP.NET Framework 4.6.1 MVC app with ASP.NET Identity

Instructions:

  1. Run the CookieAuth.Core app. Register a user. The app authenticates the user when the user is registered. Sign the user out.
  2. In the same browser session, run the CookieAuthWithIdentity.Core app. Register the same user as used with the Core app. The app authenticates the user when the user is registered. Sign the user out.
  3. In the same browser session, run the CookieAuthWithIdentity.NETFramework app. Register the same user as used with the other apps. The app authenticates the user when the user is registered. Sign the user out.
  4. Sign in the user to any of the three apps. The authentication cookie is shared among the apps. Note that the user is automatically signed into the other two apps.
  5. Sign out the user from any of the apps. Note that the user is automatically signed out of the other two apps.

This sample demonstrates the features described in the Sharing cookies among apps topic.