Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Authentication pattern .Net

Tags:

.net

asp.net

I am planning to create a component that will be able to check user's credentials (username and password) and, if they are valid, return associated profiles. I don't want to use the providers that already exist in the .Net framework (I am trying to exercise my development skills ). Is there any pattern I can use? Or standards?

like image 657
GRGodoi Avatar asked Jun 22 '26 15:06

GRGodoi


1 Answers

The providers that .Net supply are all derrived from System.Web.Security.MembershipProvider.

The best pattern you could follow is to write your own class that derives from Membership provider. That way you can write your own Authentication mechanism without having to worry about the security plumbing involved with checking authentication for every request.

like image 56
matt_dev Avatar answered Jun 24 '26 06:06

matt_dev