From the course: Securing ASP.NET Core Apps: Advanced Techniques for Web Application Security
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Cookie-based authentication - ASP.NET Core Tutorial
From the course: Securing ASP.NET Core Apps: Advanced Techniques for Web Application Security
Cookie-based authentication
- [Instructor] Cookie-based authentication is an important authentication type where the necessary identity information of a user is stored in a cookie. But how does this work? Let us say you navigate a website which is asking for user credentials. You have to provide the username and password, and click the login button. A request will be sent to the server which is going to validate the user credentials. If the user credentials are valid, that is going to create a session and return the session ID to the browser. Now the browser is going to store this session ID in a cookie. So that is why we call this authentication type, the cookie-based authentication. Now, this session ID is sent with each request to the website, which is checked against the active session IDs in the server, and if valid, you'll get some data, otherwise, you'll be asked to provide your credentials again. Now, let us go to Visual Studio and…
Contents
-
-
-
-
(Locked)
What is authentication?1m 31s
-
(Locked)
Identity on ASP.NET Core5m 46s
-
(Locked)
Simple authentication with [Authorize] attribute5m 56s
-
(Locked)
Cookie-based authentication6m 49s
-
(Locked)
Social media provider authentication8m 33s
-
(Locked)
Email account verification10m 21s
-
(Locked)
API-key authentication7m 10s
-
(Locked)
Token-based authentication2m 16s
-
(Locked)
-
-