简体   繁体   English

Windows和Web应用程序之间的握手

[英]Handshake between windows and web application

We have a legacy windows application already in place. 我们已经有一个旧版Windows应用程序。 Many clients are using it. 许多客户正在使用它。 Now, we have created web application which has some additional features. 现在,我们创建了具有一些附加功能的Web应用程序。 I want to implement handshake between this two applications (Windows and Web) and bypass the the second time login for the user because user is already authenticated via windows application. 我想在这两个应用程序(Windows和Web)之间实现握手,并绕过用户的第二次登录,因为用户已经通过Windows应用程序进行了身份验证。 I need logged in user details to redirect user with his/her page in web application. 我需要登录用户详细信息,以在Web应用程序中用他/她的页面重定向用户。
My question is :: What is the secure way to do the handshake ? 我的问题是::进行握手的安全方法是什么?

Both application is implemented using .Net Framework 这两个应用程序都是使用.Net Framework实现的

This may not directly answer your question, but it may get you on the right track (and I couldn't easily put this in a question comment). 这可能不会直接回答您的问题,但可能会让您走上正确的路(而且我不能轻易将其放在问题注释中)。

I pass credentials between WebForms apps and use the following section in both apps' Web.Config. 我在WebForms应用程序之间传递凭据,并在两个应用程序的Web.Config中使用以下部分。

<system.web>
    <!--This item defines the validation key that is shared between this 
    application and the second app (both have this exact line in order 
    to share the authentication cookie between them and prevent the
    user from having to log in more than once)

    You can generate keys here: 
    http://www.eggheadcafe.com/articles/GenerateMachineKey/GenerateMachineKey.aspx
    -->
    <machineKey validationKey="77AC2038C364CC68F1C81B8C0517DEFC7599E0C801851CB9648CF242CA1561193D11B5B034753CDBD98F3126EFDF8227B69BBD6BEC4F33DB0C9A6C9A12D40A0C" 
        decryptionKey="8ED6E18D4840AB84A95161970154E31D80A0BDD1615C6A02F1DCD9DA382BB8C2" 
        decryption="3DES"/>
</system.web>

Since we don't know how you're authenticating with either application, I can't advise on what's possible. 由于我们不知道您如何使用这两种应用程序进行身份验证,因此我无法提供任何建议。 If you're using Windows Authentication on the desktop app and the ASP.NET membership provider for the WebForms app, I'm not sure if there's a viable bridge between those two protocols. 如果您在桌面应用程序上使用Windows身份验证,而WebForms应用程序使用ASP.NET成员资格提供程序,则不确定这两个协议之间是否存在可行的桥梁。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM