在Windows App& amp;之间同步用户数据网页 [英] Syncing user data between Windows App & Web

查看:117
本文介绍了在Windows App& amp;之间同步用户数据网页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个为公司开发的C#Windows应用程序.我还有一个编写的自定义后端系统,它也使用我的自定义数据提供程序.基本上,当您登录Windows应用程序时,我希望它可以验证他们用于其网站的用户名和密码.这样,他们可以从一个简单的管理区域管理帐户.

我当时想将带有窗体数据的帖子发回服务器,并模拟一个Web浏览器. Cookies将返回用户权限.不知道这是否是正确的方法,还是什么?

我不介意在后端代码中实现一个简单的API来执行此操作.

解决方案

它真的必须去套接字层进行开发吗?蜜蜂?您可能要使用WCF身份验证服务. MSDN上有一些有关此主题的文档:如何:启用WCF身份验证服务 [ ^ ]


I have a C# Windows Application I am developing for a company. I also have a custom back-end system I wrote, that uses my custom data provider, as well. Basically, when you login to the windows application I would like it to verify the username and password that they use for their website. That way they can manage their accounts from one simple management area.

I was thinking of a post back to the server with the window''s form data, and emulating a web browser. The cookies would return the user permissions. Not sure if this is the proper way of doing it, or what?

I wouldn''t mind implementing a simple API to do this in my back-end code. Is it even possible to do it via the webserver, or would I have to develop an actual server application?

解决方案

Does it really have to go to sockets layer and developing APIs? You probably want to use WCF authentication service. MSDN has some docs on this topic: How to: Enable the WCF Authentication Service[^]


这篇关于在Windows App& amp;之间同步用户数据网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆