Open Closed

Correlation failed #7863


User avatar
0
niall created

Check the docs before asking a question: https://abp.io/docs/latest Check the samples to see the basic tasks: https://abp.io/docs/latest/samples The exact solution to your question may have been answered before, and please first use the search on the homepage. Provide us with the following info: 🧐 Hint: If you are using the ABP Studio, you can see all the information about your solution from the configuration window, which opens when you right-click on the solution and click on the Solution Configuration button.

  • ABP Framework version: v8.2.2
  • UI Type: MVC
  • Database System: EF Core ( MySQL)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

I created a app-pro template project. I run the AuthServer at http://192.168.1.152:8000, run the HttpApi.Host at http://192.168.1.152:8001 ,run the Web at http://192.168.1.152:8002.

When i access the Web(http://192.168.1.152:8002), it redirect the Account/Login successfully. I enter the username and passwor, login success. but redirect back the Web(http://192.168.1.152:8002), got a internal error.

this is log:

[13:47:07 INF] Request finished HTTP/1.1 GET http://192.168.1.152:8002/ - 302 0 null 767.8895ms
[13:47:07 INF] Request starting HTTP/1.1 GET http://192.168.1.152:8002/Account/Login - null null
[13:47:07 INF] Executing endpoint 'XTC.BaaSo.Web.Controllers.AccountController.LoginAsync (XTC.BaaSo.Web)'
[13:47:07 INF] Route matched with {action = "Login", controller = "Account", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult] LoginAsync(System.String, System.String) on controller XTC.BaaSo.Web.Controllers.AccountController (XTC.BaaSo.Web).
[13:47:07 INF] Executing ChallengeResult with authentication schemes (["oidc"]).
[13:47:07 INF] AuthenticationScheme: oidc was challenged.
[13:47:07 INF] Executed action XTC.BaaSo.Web.Controllers.AccountController.LoginAsync (XTC.BaaSo.Web) in 179.7605ms
[13:47:07 INF] Executed endpoint 'XTC.BaaSo.Web.Controllers.AccountController.LoginAsync (XTC.BaaSo.Web)'
[13:47:07 INF] Request finished HTTP/1.1 GET http://192.168.1.152:8002/Account/Login - 302 0 null 193.8017ms
[13:47:08 INF] Request starting HTTP/1.1 POST http://192.168.1.152:8002/signin-oidc - application/x-www-form-urlencoded 1642
[13:47:08 WRN] '.AspNetCore.Correlation.IVW8OqkG0dA02UgkNaWBnV7tJweAWBYj_N8msRi4-8U' cookie not found.
[13:47:08 INF] Error from RemoteAuthentication: Correlation failed..
[13:47:08 ERR] An unhandled exception has occurred while executing the request.
Microsoft.AspNetCore.Authentication.AuthenticationFailureException: An error was encountered while handling the remote login.
 ---> Microsoft.AspNetCore.Authentication.AuthenticationFailureException: Correlation failed.
   --- End of inner exception stack trace ---
   at Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler`1.HandleRequestAsync()
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Volo.Abp.AspNetCore.Security.AbpSecurityHeadersMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
   at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.InterfaceMiddlewareBinder.<>c__DisplayClass2_0.<<CreateMiddleware>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)
[13:47:08 INF] Executing endpoint 'Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared)'
[13:47:08 INF] Route matched with {action = "Index", controller = "Error", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Index(Int32) on controller Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared).
[13:47:08 WRN] Could not find IdentityClientConfiguration for AbpMvcClient. Either define a configuration for AbpMvcClient or set a default configuration.
[13:47:08 INF] Start processing HTTP request GET http://192.168.1.152:8001/api/abp/application-configuration?IncludeLocalizationResources=False&api-version=1.0
[13:47:08 INF] Sending HTTP request GET http://192.168.1.152:8001/api/abp/application-configuration?IncludeLocalizationResources=False&api-version=1.0
[13:47:08 INF] Received HTTP response headers after 35.473ms - 200
[13:47:08 INF] End processing HTTP request after 35.7513ms - 200
[13:47:08 WRN] Could not find IdentityClientConfiguration for AbpMvcClient. Either define a configuration for AbpMvcClient or set a default configuration.
[13:47:08 INF] Start processing HTTP request GET http://192.168.1.152:8001/api/abp/application-localization?CultureName=zh-Hans&OnlyDynamics=True&api-version=1.0
[13:47:08 INF] Sending HTTP request GET http://192.168.1.152:8001/api/abp/application-localization?CultureName=zh-Hans&OnlyDynamics=True&api-version=1.0

By the way, if AuthServer binds to https://localhost:44300 , HttpApi.Hot binds to https://localhost:44301, and Web binds to the https://localhost:44302, everything is ok .

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

5 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Yes, the website needs to use HTTPS.

    You can choose:

    1. Use HTTPS(recommend)
    2. Change cookie https://learn.microsoft.com/en-us/aspnet/core/security/samesite?view=aspnetcore-8.0
    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    niall created

    Yes, Https with domain name is works fine at internet,such as https://xxx.mydomain.com, But my project need work on a LAN IP, If use HTTPS such as https://192.168.11.11:44300? Is there a way to generate a self-signed SSL certificate and the browser trusts it not to prompt a warning?

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can google the way to generate SSL for an IP.

    https://kb.eway-crm.com/en/faq-1/server/how-to-create-self-signed-certificate-on-local-ip-address https://www.digicert.com/kb/csr-creation-ssl-installation-iis-10.htm

    https://www.google.com/search?q=generate+ssl+certificate+for+ip+address

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    niall created

    I resolved it , thanks very much~

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    : )

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 16, 2026, 14:50
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.