2fe9ca8744
Fixes #9114 We're going to keep the cookie sharing auth samples over here on the docs repo and **not** move them to the AuthSamples repo. We don't need to keep the previous Identity Core sample (and it's not linked to anything). |
||
---|---|---|
.. | ||
CookieAuth.Core | ||
CookieAuthWithIdentity.Core | ||
CookieAuthWithIdentity.NETFramework/CookieAuthWithIdentity.NETFramework | ||
KeyRing | ||
README.md |
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 Razor Pages app without using ASP.NET Core Identity |
CookieAuthWithIdentity.Core | ASP.NET Core MVC app with ASP.NET Core Identity |
CookieAuthWithIdentity.NETFramework | ASP.NET Framework MVC app with ASP.NET Identity |
Instructions:
- Run the CookieAuth.Core app. Register a user. The app authenticates the user when the user is registered. Sign the user out.
- 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.
- 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.
- 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.
- 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 Share cookies among apps topic.