Asp net core Blazor Auth0 异常:OpenIdConnectAuthenticationHandler:message.State 为 null 或为空

2024-02-29

我正在使用 Blazor 服务器端和 Auth0 来处理我的应用程序的登录。

我可以正常进入登录屏幕,但是当我单击“确定”使用正确的凭据登录时,我得到以下信息:

Exception: OpenIdConnectAuthenticationHandler: message.State is null or empty.
Exception: An error was encountered while handling the remote login.
Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler<TOptions>.HandleRequestAsync()

在本地主机上工作正常,但在我的 Beanstalk AWS 环境中运行时不行。

我已在 Auth0 仪表板中添加了所有相关的回调 URL。

我的 Startup.cs 有这个回调,我认为这不应该是一个问题。

// Set the callback path, so Auth0 will call back to http://localhost:3000/callback
// Also ensure that you have added the URL as an Allowed Callback URL in your Auth0 dashboard
options.CallbackPath = new PathString("/callback");

None

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Asp net core Blazor Auth0 异常:OpenIdConnectAuthenticationHandler:message.State 为 null 或为空 的相关文章

随机推荐