How is the defaultauthentication module mounted to the system?

Source: Internet
Author: User

I searched for Web. config and machine. config, but did not find the defaultauthentication module. I reflected the code and found that it was originally written in the Code:

?

This module also has an event:

However, the Code writes the ultauthentication module to the dead instance and does not specify what the event will do. Who will specify what the event will do and where?

MATERIALS:

Http://technet.microsoft.com/zh-cn/library/system.web.security.defaultauthenticationmodule.authenticate%28v=vs.110%29

Is specified in global. asax:

You can specify a subroutine named defaultauthentication_onauthenticate in the global. asax file of the application to access the authenticate event of the defaauthauthenticationmodule class.

?

As specified in global. asax, how does one correspond to the instance of this module?

In the initinternal function of httpapplication, you can call hookupeventhandlersforappplicationandmodules to mount it in reflection mode:

?

?

The analysis is complete.

How is the defaultauthentication module mounted to the system?

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.