impworks / bonsai

Self-hosted family wiki engine / photoalbum
MIT License
202 stars 25 forks source link

Ошибка при логине #204

Closed impworks closed 3 years ago

impworks commented 3 years ago

Если логин через провайдера не выходит, появляется системная ошибка вместо нормального сообщения:

System.Exception: An error was encountered while handling the remote login.
 ---> System.Exception: The oauth state was missing or invalid.
   --- End of inner exception stack trace ---
   at Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler`1.HandleRequestAsync()
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Bonsai.Code.Services.StartupService.RenderLoadingPage(HttpContext context, Func`1 nextDelegate) in D:\sources\bonsai\src\Bonsai\Code\Services\StartupService.cs:line 60
   at Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)