Last post Mar 15, 2011 03:25 PM by XIII
Mar 15, 2011 01:14 PM|vimalpercy|LINK
I have a website implemented using ASP.NET login controls and memberhip provider.
The new requirement is to get rid of the form login controls and implement a smart card authentication.
But all the pages depends on ASP.NET membership provider for authentication and so what I am looking for is smart card authentication and after authentication, implement a membership validation through code without forms data.
Any help is really appreciated
Mar 15, 2011 01:21 PM|XIII|LINK
just replace the the default used SqlMembershipProvider with a custom one. It's simply creating a custom class which inherits from MembershipProvider class and some web.config adjustment. There's a nice tutorial about it: [How
Do I:] Create a Custom Membership Provider?
Mar 15, 2011 03:18 PM|vimalpercy|LINK
Thanks Mr. Kris for the reply.
The video link you have provided showed how to create custom membership provider. But it still uses the
ASP.NET Login controls and forms authentication. What I want is something that mimic
Login1_LoggedIN() method where I can create my LoginUser from customer membership provider, but how can I create the Formsauthentication cookie without using the Login control and forms authentication?
Mar 15, 2011 03:25 PM|XIII|LINK
I put in the videolink to show how to implement the custom membershipprovider. What you'll need to do is to create a custom one that intercepts the authentication information from the smart card in the browser and transfer that to server. Ask the vendor
of the smart cards if they offer something like this (most likely a signed java applet which you have to plugin).
For the ticket you can make use of the methods the FormsAuthentication class offers you: http://msdn.microsoft.com/en-us/library/system.web.security.formsauthentication_methods.aspx.