Starts in:
3 DAYS
2 HRS
53 MIN
41 SEC
Starts in:
3 D
2 H
53 M
41 S
Open Closed

"OpenIdConnectAuthenticationHandler: message.State is null or empty" Where do I need to configure this error? #2644


User avatar
0
yujunlee created
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

The current configuration is as follows: 1、Myzzh.Iecp.Web.Public--appsettings.json { "App": { "SelfUrl": "https://pub.xxxx.cn:443" }, "Redis": { "Configuration": "127.0.0.1" }, "ConnectionStrings": { "Default": "Server=localhost;Database=Myzzh_Iecp;Trusted_Connection=True" }, "AuthServer": { "Authority": "https://admin.xxxx.cn:44308", "RequireHttpsMetadata": "true", "ClientId": "Iecp_Web_Public", "ClientSecret": "1q2w3e*" }, "Settings": { "Volo.Abp.LeptonTheme.Style.PublicLayout": "Style5" } }

2、client Iecp_Web_Public 回调 Url:https://pub.xxxx.cn:443/signin-oidc

3、logss.txt error message:

2022-02-23 17:01:21.273 +08:00 [INF] Executed action Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationConfigurationScriptController.Get (Volo.Abp.AspNetCore.Mvc) in 387.5938ms 2022-02-23 17:01:21.274 +08:00 [INF] Executed endpoint 'Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationConfigurationScriptController.Get (Volo.Abp.AspNetCore.Mvc)' 2022-02-23 17:01:21.278 +08:00 [INF] Request finished HTTP/2 GET https://pub.myzzh.cn/Abp/ApplicationConfigurationScript - - - 200 163262 application/javascript 395.2323ms 2022-02-23 17:02:31.192 +08:00 [INF] Request starting HTTP/2 GET https://pub.myzzh.cn/signin-oidc - - 2022-02-23 17:02:31.229 +08:00 [INF] Error from RemoteAuthentication: OpenIdConnectAuthenticationHandler: message.State is null or empty.. 2022-02-23 17:02:31.233 +08:00 [ERR] An unhandled exception has occurred while executing the request. System.Exception: An error was encountered while handling the remote login. ---> System.Exception: OpenIdConnectAuthenticationHandler: message.State is null or empty. --- End of inner exception stack trace --- at Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler1.HandleRequestAsync() at IdentityServer4.Hosting.FederatedSignOut.AuthenticationRequestHandlerWrapper.HandleRequestAsync() at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task) 2022-02-23 17:02:31.260 +08:00 [INF] Executing endpoint 'Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared)' 2022-02-23 17:02:31.263 +08:00 [INF] Route matched with {action = "Index", controller = "Error", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task1[Microsoft.AspNetCore.Mvc.IActionResult] Index(Int32) on controller Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared). 2022-02-23 17:02:31.282 +08:00 [INF] Executing ViewResult, running view ~/Views/Error/500.cshtml. 2022-02-23 17:02:31.373 +08:00 [INF] Executed ViewResult - view ~/Views/Error/500.cshtml executed in 92.121ms. 2022-02-23 17:02:31.374 +08:00 [INF] Executed action Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared) in 110.2151ms 2022-02-23 17:02:31.374 +08:00 [INF] Executed endpoint 'Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared)' 2022-02-23 17:02:31.374 +08:00 [INF] Request finished HTTP/2 GET https://pub.myzzh.cn/signin-oidc - - - 500 - text/html;+charset=utf-8 182.4526ms 2022-02-23 17:02:31.425 +08:00 [INF] Request starting HTTP/2 GET https://pub.myzzh.cn/__bundles/Lepton.Global.003FB40365CCDB34ED7A45D43ECF81B7.css?_v=637812031178458987 - - 2022-02-23 17:02:31.427 +08:00 [INF] Request starting HTTP/2 GET https://pub.myzzh.cn/__bundles/Lepton.Global.3C79FA78DCB2A9B21B78EBB1E13BAAA4.js?_v=637812031188496165 - - 2022-02-23 17:02:31.427 +08:00 [INF] The file /__bundles/Lepton.Global.003FB40365CCDB34ED7A45D43ECF81B7.css was not modified 2022-02-23 17:02:31.427 +08:00 [INF] The file /__bundles/Lepton.Global.3C79FA78DCB2A9B21B78EBB1E13BAAA4.js was not modified


No answer yet!
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06