Asp. NET authentication Details

Source: Internet
Author: User

(1) Ticket: Provides access to the properties and values of the ticket used for forms authentication and identifies the user. You can use the Ticket property of the FormsIdentity class to access the FormsAuthenticationTicket of the currently authenticated user. You can access the current FormsIdentity object by casting the identity property of the current user to type FormsIdentity.

(2) Token: A handle to the access token associated with the current executing thread to obtain the user's Windows account token. Typically, you retrieve the account token by calling unmanaged code, such as calling the Win32 API LogonUser function.

(3) Identity:identity encapsulates information about the user or entity that is being validated. At the most basic level, the identity contains the name and authentication type. The name can be a user name or a Windows account name, and the authentication type can be a supported login protocol (such as Kerberos V5) or a custom value. The. NET Framework defines a GenericIdentity object and a more specialized WindowsIdentity object, which can be used for most custom logon scenarios, which can be used in situations where you want your application to depend on Windows authentication. In addition, you can define your own identity class to encapsulate custom user information.

(4) Principal:principal represents the security context in which the code is run. Applications that implement role-based security will grant permissions based on the role associated with the principal object. Similar to identity objects, the. NET Framework provides GenericPrincipal objects and WindowsPrincipal objects. You can also define your own custom principal classes.

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.