nhsconnect / gpconnect-appointment-checker

GP Connect Appointment Checker
4 stars 1 forks source link

User gets blank page when exception occurs on login #83

Closed jonnyry closed 3 years ago

jonnyry commented 3 years ago
Screenshot 2020-12-08 at 12 07 54

User should be informed that an error occurred, rather than seeing a blank page.

{ "type": "System.Exception", "message": "An error was encountered while handling the remote login.", "stacktrace": "   at Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler`1.HandleRequestAsync()\n   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)\n   at Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.Invoke(HttpContext context)\n   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)\n   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.HandleException(HttpContext context, ExceptionDispatchInfo edi)\n   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)\n   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)", "innerException": { "type": "System.DllNotFoundException", "message": "Unable to load shared library 'ldap-2.4.so.2' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libldap-2.4.so.2: cannot open shared object file: No such file or directory", "stacktrace": "   at gpconnect_appointment_checker.Startup.<>c.<AddAuthenticationServices>b__13_4(AuthenticationFailedContext context) in \/src\/gpconnect-appointment-checker\/Startup.cs:line 98\n   at Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectEvents.AuthenticationFailed(AuthenticationFailedContext context)\n   at Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectHandler.RunAuthenticationFailedEventAsync(OpenIdConnectMessage message, Exception exception)\n   at Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectHandler.HandleRemoteAuthenticateAsync()\n   at Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler`1.HandleRequestAsync()" } }
jonnyry commented 3 years ago

Fixed.