From the course: ASP.NET Core Identity: Authentication Management
Unlock the full course today
Join today to access over 22,500 courses taught by industry experts or purchase this course individually.
Cookie-based authentication configuration - ASP.NET Core Tutorial
From the course: ASP.NET Core Identity: Authentication Management
Cookie-based authentication configuration
- [Narrator] We have seen so far in previous chapters that asp.net core identity is a complete authentication provider with a lot of features. However in .net you can create your own custom authentication logic with cookies. So this means that we as developers can create cookie based authentication systems. To use cookie authentication without identity, we need to use the Authentication.Cookies package. And this package comes by default in the .net core. By using this package we can define different cookie authentication options. So for example we can define a domain for our cookie, which means that we can define the Domain name where the cookie is served. Or we can define the Expired Time Span which means that we can define the lifespan of a cookie, or even a cookie Name so we can set to our cookie a name. So let us go to visual studio and start implementing our cookie based authentication system. Here in visual studio let us go to solution explorer, and then we will choose the first…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.