如何在ASP.NET网站上通过Facebook和Google创建登录 [英] How to create login thru Facebook and Google on ASP.NET website

查看:75
本文介绍了如何在ASP.NET网站上通过Facebook和Google创建登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过asp.net网站上的facebook和google创建登录。

1.是否必须拥有SSL

2.是否有相同的第三方插件或应用程序。



我尝试了什么:



i已经尝试了但是它给出了错误我还没有ssl

to create login thru facebook and google on asp.net website .
1.Is it compulsory to have SSL
2.Is there any third party pluggin or app for the same above.

What I have tried:

i have tried but it gives error i dont have ssl yet

推荐答案

引用:

1.是否必须拥有SSL

1.Is it compulsory to have SSL

不是强制性的,而是非常好的方法,因为Facebook或Google的网络应用程序会知道您的通信是安全

Not compulsory, but a very good approach, as the web app of Facebook or Google would know that you the communication is secure.

Quote:

2.上面有相同的第三方插件或应用程序。

2.Is there any third party pluggin or app for the same above.

Apart来自第三方,谷歌和Facebook都有开发人员文档,您可以在ASP.NET中轻松阅读和实现。



这两个巨头的悲哀之处在于他们没有正式支持.NET框架。它们支持PHP,Node.js或简单的JavaScript。因此,您需要做的是使用JavaScript实现此功能。



查看以下链接,

Google Identity Platform  |  Google Developers [ ^ ]

Facebook登录API [ ^ ]



编辑



如评论中所述,您还可以使用OAuth库, OAuth .NET库 [ ^ ]。为此,您还需要了解服务器 - 客户端环境中的几个端点。

Apart from third-party, Google and Facebook both have developer documentations that you can easily read and implement in ASP.NET.

Sad thing about these two giants is, that they do not officially support .NET framework. They support, PHP, Node.js, or simple JavaScript. So, what you would need to do is to implement this feature using JavaScript.

Have a look at the following links,
Google Identity Platform  |  Google Developers[^]
Facebook Login API[^]

Edit

As mentioned in the comments, you can also utilize the OAuth libraries, OAuth .NET library[^]. For this, you would also require to know a few endpoints for communication in the server-client environment.


这篇关于如何在ASP.NET网站上通过Facebook和Google创建登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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