外部身份提供商

问题描述 投票:0回答:1

我正在使用 duende 身份服务器 4 我需要使用 facebook 和 google 创建登录,所以首先我设置我的项目并使用 duende 软件的快速启动,我无法实现该要求,但我假装当我使用 facebook 或 google 或任何外部提供商登录时将存储在表 IdentityProviders 中

enter image description here

但是尽管表 AspNetUserLogins 具有此内容,但表是空的

enter image description here

c# .net identityserver4 duende-identity-server
1个回答
0
投票

IdentityProviders 表由“动态提供商”功能使用,该功能仅在企业许可证中可用。 IdentityServer 仅读取该表,由您来填充该表。该表的内容为添加的每个外部身份提供商的一行。典型用途是针对多租户 SAAS 应用程序的每个客户 Saml2 或 OpenID 连接提供商。

AspNetUserLogins 表包含每个用户的外部用户 ID。

您的示例中的一切看起来都是正确的。看起来您正在通过在 AuthenticationBuilder 上调用 AddGitHub() 和 AddGoogle() 将 GitHub 和 Google 添加为服务设置中的提供者。

© www.soinside.com 2019 - 2024. All rights reserved.