locked
How to get the smart Card authentication info from JavaScript-based Metro project? RRS feed

  • Question

  • Hello, Dear all,

    In an environment that uses smart cards for authentication, the program is a JavaScript-based Metro project. When client connects to the server, the certificate selection dialog is triggered by IE but I am not sure. I believe it is IE who did this.

    My question is: the program couldn't get any smart card related information before the authentication's completion. For example, if I click the 'OK' button in the certificate selection dialog, the program has no idea which user is selected.

    Is there any suggestion to get the information during the authentication?

    Thank you very much.

    Tuesday, May 7, 2013 12:33 PM

Answers

  • Hi B0L,

    You cannot use the GINA functionality through a Windows Store app. In other words, your Windows Store app cannot use the smart card relevant API's directly.

    Thanks,

    Prashant.


    @prashantphadke || Windows Store Developer Solutions #WSDevSol || Want more solutions? See our blog, Windows Store & Phone Developer Solutions

    • Marked as answer by B0L Monday, May 27, 2013 4:20 AM
    Friday, May 24, 2013 5:37 PM
    Moderator

All replies

  • What class/ object are you using in your JavaScript app to trigger the certificate prompt? Are you using XmlHttpRequest?

    Thanks,

    Prashant.


    @prashantphadke || Windows Store Developer Solutions #WSDevSol || Want more solutions? See our blog, Windows Store & Phone Developer Solutions

    Wednesday, May 15, 2013 10:59 PM
    Moderator
  • Hello, Prashant,

    Yeah, I am using WinJS.xhr, namely, XmlHttpRequest exactly!

    I am now wondering that on WinRT we couldn't control the procedure from popping up the certificate selection dialog to select one user or clicking the 'Cancel' button.

    Thank you very much. Prashant.

    Tuesday, May 21, 2013 7:34 AM
  • Yes, that's correct. You cannot retrieve the certificate information when using XmlHttpRequest. Generally speaking, certificates that are to be used by a Windows Store app are intended for use in a specific app container which stored per user, per app container location. So, ideally your store app will only have a single client certificate that you already know the information for. See this link for more info: http://msdn.microsoft.com/en-us/library/windows/apps/hh465029.aspx

    Thanks,

    Prashant.


    @prashantphadke || Windows Store Developer Solutions #WSDevSol || Want more solutions? See our blog, Windows Store & Phone Developer Solutions

    Tuesday, May 21, 2013 11:35 PM
    Moderator
  • Thanks, Prashant,

    That's to say, we are totally out of control for the smart card relevant APIs? Or could we involve in the Winlogon procedure by using smart card in Metro App? Some details have been in the page: http://msdn.microsoft.com/en-us/library/bb905527.aspx. Thanks.

    Thursday, May 23, 2013 8:30 AM
  • Hi B0L,

    You cannot use the GINA functionality through a Windows Store app. In other words, your Windows Store app cannot use the smart card relevant API's directly.

    Thanks,

    Prashant.


    @prashantphadke || Windows Store Developer Solutions #WSDevSol || Want more solutions? See our blog, Windows Store & Phone Developer Solutions

    • Marked as answer by B0L Monday, May 27, 2013 4:20 AM
    Friday, May 24, 2013 5:37 PM
    Moderator
  • Thank you very much, Prashant!
    Monday, May 27, 2013 4:20 AM