Analysis on ASP. NET Security Architecture

Source: Internet
Author: User

In developing Web programs, we can choose to use our own methods to implement security policies, or purchase third-party security code and products. In any case, it is very costly, fortunately. NET Framework has built-in security solutions.

ASP. NET and. NET Framework work with IIS to provide a basic structure for Web Application Security. One of its obvious advantages is that we don't have to write our own security architecture, and we can use it. NET Security Architecture built-in features, and the entire security architecture is tested and tested by time.

. NET security architecture includes many classes, which are used to process identity authentication, authorization, role-based authorization, counterfeit (Impersonation), and secure code access, it also contains a basic architecture for building a custom solution.

This article focuses on the following topics:
◆ Main functions of ASP. NET Security Architecture
◆ Authentication and authorization
◆ Identity and subject in the security context
◆ Run the Authentication Module
◆ Authorization module operation

Start:

ASP. NET Security Architecture

The ASP. NET security architecture consists of several key security processes: identity authentication, authorization, counterfeiting, and encryption provide the necessary functions. Let's take a look at some explanations:
◆ Authentication-specify who visits our site again
◆ Authorization-who can perform operations and access to which resources? Is the user accessing the website authorized to use the requested resources?
◆ Counterfeiting-What role are you going to counterfeit? (Note: counterfeiting is not a derogatory term. It is not often said that counterfeit goods are counterfeited because different user roles have different permissions. If our current users cannot access a specific resource, we can impersonate users who want to access specific resources. Specifically, we can simulate users who have access to specific resources. In short, user A wants to access resources C, but has no permission, but user B can access, so A and B discuss, A will access with B's identity. (For more information)

Authentication

Identity Authentication refers to the process of revealing the user identity (note: the concept of identity is what we will talk about right away, in short, the user ID and name) and determining the authenticity of the identity. Well understood. For example (note some terms in this example): We want to attend a meeting, we will obtain some of our creden。 (indicating our identity) provided by the registration. Once the identity is confirmed, we will get the meeting pass and we will be able to bring the pass to the meeting.

In addition, everyone in the meeting can learn some information about us through our pass, such as our name and company. Identity Authentication is: Once the identity is identified, we will get a token that can recognize us. Therefore, no matter where we are in a specific region, all of our identifiers can be identified.

In ASP. NET, there are 4 authentication modes:
◆ Windows Authentication)
◆ Forms Authentication)
◆ Passpot Authentication)
◆ Custom authentication

For each authentication method, you must provide creden during logon. Once the identity is verified, the user will receive an authentication token. In Forms authentication, the entire token is FormsAuthenticationTicket, and the entire token is placed in the cookie. Each time a resource is requested, the token will provide the user's identification information.

  1. Introduction to ASP. net mvc implementation
  2. How to send emails from ASP. NET 2.0
  3. Introduction to ASP. NET Applications
  4. ViewState nature in ASP. NET
  5. Installing ASP. NET AJAX

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.