locked
How to pass windows security token to other application in SOAP format in C++. RRS feed

  • Question

  • Hi All,

     I am developing client application which communicates with OPC UA server.

    This server can accept Windows access token.

    Before passing windows Access token to the server I want to convert in WS-Security compliant Security Token.

    1. Since my application is running on windows I believe that default token that I can get from “OpenThreadToken()” will be Kerberos token and it is WS security complaint.Let me know if I am correct here in my understanding.
    2. How do I convert this token in XML format which can be send in the SOAP message header using C++.
    3. Do I need to apply any kind of encrypting before sending this token?
    4.  Can you please provide some links, sites where this kind of information is available?

    Thanks,

    Ashish Patil

    Thursday, February 13, 2014 12:52 PM

All replies

  • This can't be done.

    Windows Token are unique to each process.  To pass a token from one process to another in Windows, you need to call DuplicateHandle() which requires process handles in each process.

    thanks

    Frank K [MSFT]

    Follow us on Twitter, www.twitter.com/WindowsSDK

    Wednesday, January 7, 2015 5:46 AM