Custom Authentication provider by implementing IHttpModule, IPrincipal and IIdentity

http://www.codeproject.com/KB/web-security/AspNetCustomAuth.aspx

Asp.Net: Authentication based on HTTP Basic protocol. HttpModule.

http://blogs.x2line.com/al/articles/146.aspx

http://msdn.microsoft.com/en-us/library/ff649096.aspx

Demo:

https://files.cnblogs.com/joe-yang/CustomAuthenticationDemo.zip

when deploy demo app in windows 7's IIS 7.5, it may be occured the following error:

Unable to cast object of type 'System.Security.Principal.GenericIdentity' to type 'CustomSecurity.CustomIdentity'

solution:

IIS 7.5 httpmodule authentication Error

相关文章: