How do you set authentication mode in the ASP.NET application?
- You can set authentication mode using web.config file.
Example:<authentication mode="windows">
<authentication mode="passport">
<authentication mode="forms">
- It supports an 'OnAuthenticate' event that occurs during the authentication process.
- This event is used to attach a custom object that implements the 'IPrinciple' interface to the context.