aspnetcore/samples/Cookies
Javier Calvarro Nelson 90eca80e0b React to changes in MVC Testing 2018-03-19 15:36:15 -07:00
..
Controllers Add cookies and claims transformation samples/tests 2017-11-10 14:01:44 -08:00
Models Add cookies and claims transformation samples/tests 2017-11-10 14:01:44 -08:00
Views Add cookies and claims transformation samples/tests 2017-11-10 14:01:44 -08:00
wwwroot Add cookies and claims transformation samples/tests 2017-11-10 14:01:44 -08:00
.bowerrc Add cookies and claims transformation samples/tests 2017-11-10 14:01:44 -08:00
ConfigureMyCookie.cs Add cookies and claims transformation samples/tests 2017-11-10 14:01:44 -08:00
Cookies.csproj Update samples and tests to netcoreapp2.1 2017-11-21 15:48:08 -08:00
Program.cs React to changes in MVC Testing 2018-03-19 15:36:15 -07:00
README.md Add cookies and claims transformation samples/tests 2017-11-10 14:01:44 -08:00
Startup.cs Add cookies and claims transformation samples/tests 2017-11-10 14:01:44 -08:00
appsettings.Development.json Add cookies and claims transformation samples/tests 2017-11-10 14:01:44 -08:00
appsettings.json Add cookies and claims transformation samples/tests 2017-11-10 14:01:44 -08:00
bower.json Add cookies and claims transformation samples/tests 2017-11-10 14:01:44 -08:00
bundleconfig.json Add cookies and claims transformation samples/tests 2017-11-10 14:01:44 -08:00

README.md

AuthSamples.Cookies

Sample demonstrating cookie authentication:

  1. Run the app and click on the MyClaims tab, this should trigger a redirect to login.
  2. Login with any username and password, the sample just validates that any values are provided.
  3. You should be redirected back to /Home/MyClaims which will output a few user claims.

Startup.cs and Controllers/AccountController.cs are the most interesting classes in the sample.