-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Enterprise Application Development with C# 10 and .NET 6 - Second Edition
By :
So far, we have built the user interface (UI) and service layer of our e-commerce application. In this chapter, we will learn how to secure it. Our e-commerce application should be able to uniquely identify a user and respond to that user's requests. A commonly used pattern for establishing user identity involves the provision of a username and password. These are then verified against the user's profile data, which is stored in a database or an application. If it matches, a cookie or token with the user's identity is generated and stored in the client's browser so that, for subsequent requests, a cookie/token is sent to the server and validated to service requests.
Authentication is a process in which you identify a user or a program accessing protected areas of your application. For instance, in our e-commerce application, a user can navigate through different pages and browse the products that are displayed. However...