简体   繁体   English

WCF客户端/服务器使用Facebook Connect登录

[英]Wcf client/server Login using facebook connect

Is it possible to use the facebook connect platform, which frees webmasters from the need of creating their own login mechanism, with a wcf client/server applications as a login? 是否可以使用Facebook Connect平台,从而使网站管理员无需使用wcf客户端/服务器应用程序进行登录就可以创建自己的登录机制?

If this can be easily done, It can save me some precious time implementing my own login and credentials mechanism. 如果可以轻松做到这一点,它可以为我节省一些宝贵的时间来实现我自己的登录名和凭据机制。 Besides - having facebook's login as your login mechanism frees you from worrying about storing users' passwords securely on your db, since all the credentials stuff is kept on facebook's servers .. 此外-使用Facebook登录名作为您的登录机制,使您不必担心将用户密码安全地存储在数据库中,因为所有凭据都保存在Facebook服务器中。

It would be pretty easy to use one of the existing .NET Facebook Connect APIs to perform the authentication yourself. 使用现有的.NET Facebook Connect API之一来自己执行身份验证将非常容易。

One such API can be found here: http://fbconnectauth.codeplex.com/ 可以在以下网址找到一种这样的API: http : //fbconnectauth.codeplex.com/

And here is a quick tutorial on how to implement a custom WCF credentials validator: 以下是有关如何实现自定义WCF凭据验证器的快速教程:

http://nayyeri.net/custom-username-and-password-authentication-in-wcf-3-5 http://nayyeri.net/custom-username-and-password-authentication-in-wcf-3-5

One thing to consider, however, is that Facebook Connect requires the user to interactively accept your application's request to validate their credentials. 但是,需要考虑的一件事是,Facebook Connect要求用户以交互方式接受您的应用程序的请求以验证其凭据。 So this would need to be incorporated into your application. 因此,这需要合并到您的应用程序中。

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

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