Auth0 - 无法查看/获取登录或注册页面

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

我第一次尝试使用 Auth0,并从此处引用了示例代码来创建 Asp.net MVC 示例应用程序。 https://github.com/auth0-samples/auth0-aspnetcore-mvc-samples/tree/master/Quickstart/Sample

我已经创建了应用程序,并设置了 Auth0 起始页上提到的所有设置以及此处提到的指南 https://medium.com/@gnerva/auth0-and-asp-net-core-mvc- net-6-0-tutorial-ef3a082ae415。 我正在使用 Visual Studio Dev 隧道进行测试,但总是收到以下错误,而不是看到登录或注册页面。

InvalidOperationException: IDX20803: Unable to obtain configuration from: 'https://<mydomain>-dev.auth0.com/.well-known/openid-configuration'. Will retry at '2/21/2024 10:39:46 PM +00:00'. Exception: 'System.IO.IOException: IDX20804: Unable to retrieve document from: '[PII of type 'System.String' is hidden. For more details, see https://aka.ms/IdentityModel/PII.]'.

我不确定可能是什么问题,但真的很想获得解决问题的见解。

非常感谢。

以下是错误截图:

.net asp.net-core-mvc asp.net-identity auth0 okta
1个回答
0
投票

当使用错误的域填充应用程序设置时,我可以重现此错误。

因此请仔细检查应用程序域的 Auth0 仪表板。
如果与应用程序设置相同

“-dev.auth0.com”似乎不是正确的格式。

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