Aspnetboilerplate-没有可用的社交登录文档 [英] Aspnetboilerplate - No Social Login documentation available

查看:52
本文介绍了Aspnetboilerplate-没有可用的社交登录文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

似乎没有有关社交登录的文档.

It seems there's no documentation regarding Social Login.

我去了这里: https://aspnetboilerplate.com/Pages/Documents/Zero/User-管理#社交登录

应该在此处讨论社交登录"主题: https://aspnetboilerplate.com/Pages/Documents/Zero/Startup-Template

And the Social Login topic is supposed to be discussed here: https://aspnetboilerplate.com/Pages/Documents/Zero/Startup-Template

这是否意味着社交登录实施已从样板中删除?

Does this means Social Login implementation has been removed from the Boilerplate?

推荐答案

ABP v3.0.0尚未完成,因为有ASP.NET Core 2.x的教程: https://docs.microsoft.com/zh-CN/aspnet/core/security/authentication/social/

It was not done for ABP v3.0.0 as there are tutorials for ASP.NET Core 2.x: https://docs.microsoft.com/en-us/aspnet/core/security/authentication/social/

如果您使用的是ABP v2.3.0之类的早期版本,请参考文档此处复制:

If you are using an earlier version like ABP v2.3.0, refer to the documentation reproduced here:

启动模板支持 Facebook Twitter Google + 登录.在web.config中,您可以看到以下设置:

Startup template supports Facebook, Twitter and Google+ logins. In the web.config, you can see the following settings:

<add key="ExternalAuth.Facebook.IsEnabled" value="false" />
<add key="ExternalAuth.Facebook.AppId" value="" />
<add key="ExternalAuth.Facebook.AppSecret" value="" />

<add key="ExternalAuth.Twitter.IsEnabled" value="false" />
<add key="ExternalAuth.Twitter.ConsumerKey" value="" />
<add key="ExternalAuth.Twitter.ConsumerSecret" value="" />

<add key="ExternalAuth.Google.IsEnabled" value="false" />
<add key="ExternalAuth.Google.ClientId" value="" />
<add key="ExternalAuth.Google.ClientSecret" value="" />

在这里,您可以启用所需的功能.当然,您必须具有从相关的社交网站获取的应用程序密钥和密码.您可以从网上找到指南,以了解如何获取此密钥.启用社交登录并输入真密钥后,您将在登录页面上看到一个按钮.您可以实现其他类似的登录.

Here, you can enable which you need. Surely, you must have application keys and passwords which you need to get from related social web site. You can find guides from web to learn how to obtain this keys. Once you enable a social login and enter true keys, you will see a button in the login page. You can implement other logins as similar.

ABP所有者的评论: https://github.com/aspnetboilerplate/aspnetboilerplate/issues/2406#issuecomment-323978304

ABP owner's comment: https://github.com/aspnetboilerplate/aspnetboilerplate/issues/2406#issuecomment-323978304

这篇关于Aspnetboilerplate-没有可用的社交登录文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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