Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Any Framework dependencies on IIdentity.AuthenticationType?

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"?

like image 646
Ethan Cabiac Avatar asked Jun 05 '11 01:06

Ethan Cabiac


People also ask

What is an identity framework?

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.

How do you implement identity authentication in MVC?

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.


1 Answers

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.

like image 184
Ethan Cabiac Avatar answered Sep 27 '22 21:09

Ethan Cabiac