I would like to leverage the IIdentity.AuthenticationType property in a custom FormsAuthentication scenario in order to set my own values. Using the out-of-the-box FormsAuthentication, the AuthenticationType of the IIdentity associated with the HttpContext is set to "Forms".
Could anyone verify if there is any logic in the core Asp.Net or Asp.Net MVC Frameworks that have functionality dependent upon the HttpContext.Current.User.Identity.AuthenticationType == "Forms"?
The Identity framework is another dependency that we will add to our application in the project. js file. This framework allows us to add features where users can register and log in with a local password. The framework also supports two-factor authentication, third-party identity providers and other features.
Open a new project in Visual Studio and select Visual C#. In Visual C#, select ASP.NET Web Application and give the project name. Click OK. Step 2: Select MVC template from template type and click Change Authentication button.
Using Reflector, I analyzed all "Used By" dependencies of IIdentity.AuthenticationType and FormsIdentity.AuthenticationType and none of the core framework has any logic that is conditional to the AuthenticationType value.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With