TAILIEUCHUNG - ASP.NET 1.1 Insider Solutions- P12

Tham khảo tài liệu ' insider solutions- p12', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | 14 Customizing Security 538 Building a Custom Authentication Module Authentication is the process of identifying users. Authentication modules use evidence in each request made to the application to identify which user is making the request. The authentication modules that ship with use as their evidence encrypted cookies in the request forms authentication and Passport authentication and evidence provided by IIS Windows authentication . What Is an Authentication Module In code terms an authentication module is an HTTP module that handles the AuthenticateRequest event of the HttpApplication object. When the event fires the authentication module checks the evidence associated with the request and populates the intrinsic object with an appropriate IPrincipal object that is an object of a class that implements the IPrincipal interface . The authorization module then uses as the basis for deciding whether the request should be authorized. The rest of the application code is then able to access whatever data is stored in the IPrincipal object. It is actually pretty rare that you need to replace the standard authentication modules with a custom solution. Usually you can solve your problems by customizing one of the existing modules. Forms authentication as you saw in Chapter 13 is particularly suitable for such manipulation. One situation in which a custom authentication module is useful is when you want to identify access to an application according to which machine is trying to access the application rather than according to which specific user is making the request. For example if you have an intranet application running on a closed network in a shopping mall you might want to identify which client machines are used to make requests in order for the application to behave differently. For example the application might show special offers appropriate to stores near the client machine that is being used or the map might be able to show a

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.