【发布时间】:2021-11-14 06:16:24
【问题描述】:
我正在尝试以这种方式使用 ASP.NET Core 3.1 配置 OpenID Connect:
.AddOpenIdConnect(cfg =>
{
cfg.Authority = "https://myurl.io";
cfg.ClientId = "123455555";
cfg.ClientSecret = "11111";
cfg.ResponseType = "code";
cfg.Scope.Clear();
cfg.Scope.Add("openid");
});
但是当我尝试启动应用程序时,出现以下错误:
System.InvalidOperationException:IDX20803:无法从以下位置获取配置:'[PII 已隐藏。有关更多详细信息,请参阅 https://aka.ms/IdentityModel/PII。]'。
嗯,我知道这是因为我没有众所周知的 medadata url,有没有办法忽略这个 url 并在Startup.cs 中手动填写信息?
【问题讨论】:
-
"我没有众所周知的媒体数据 url" OIDC 提供程序不支持发现吗?
标签: asp.net-core asp.net-identity openid