Verify windows log-in via smart card

Posted by Ronen Rabinovitz on Stack Overflow See other posts from Stack Overflow or by Ronen Rabinovitz
Published on 2012-05-22T17:07:37Z Indexed on 2012/06/01 10:40 UTC
Read the original article Hit count: 303

Filed under:
|
|
|

Hi I need to verify in my WPF application if the user log in to his computer via password or via smart-card. Both login options are available in my company clients but my application need to open only in the smart-card login. All the clients are windows 7 OS.

I look at some sites: http://technet.microsoft.com/en-us/library/ff404285(v=ws.10).aspx http://www.codeproject.com/Articles/240655/Using-a-Smart-Card-Certificate-with-NET-Security-i

and I'm thinking I need to get the enhanced key usage (EKU) attribute field. If the EKU is empty => then the user was loged via password and not via smartcard.

I only need this simple check, I do not care for creating/validations on certificates atc.

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET