Sample Code: Authentication and Authorization in ASP.NET with Smart Card
I have finally posted the C# code samples for the Smart Card HTTP Handler. See Implementing SmartCard Authentication with ASP.NET for the full article. A PDF version is included in the sample download package.
This sample code demonstraites how to implement authentication and authorization in ASP.NET with Smart Card (or Client Certificates) by:
You can download the Sample code in C# here.
Posted on 10:28 AM by j. montgomery, CISSP, GNET, GSEC and filed under
authentication,
authorization,
httpmodule,
samplecode,
security,
smartcard
| 4 Comments »
This sample code demonstraites how to implement authentication and authorization in ASP.NET with Smart Card (or Client Certificates) by:
- Implementing a custom Smart Card Aware HTTP Authentication Module for .NET
- Building an IPrincipal and IIdentity to use with ASP.NET for Smart Card Authenticaiton Http Module
You can download the Sample code in C# here.

Secure Coding in .NET: Developing Defensible Applications