Product: PowerShell Universal
Version: 2.11.1
When I have Windows Authentication enabled, I keep receiving an HTTP 500 error in the browser. I have followed the instructions related to this and have not had any success.
I have setup the service account with the proper permissions and have set SPNs (see screenshots).
I have set the Windows authentication to enabled in the appsettings.json file as well.
However, when i browse to the URL, I receive HTTP ERROR 500 with an unhandled exception in the log file.
2022-06-14 10:02:46.092 -05:00 [ERR] An exception occurred while processing the authentication request.
System.InvalidOperationException: An anonymous request was received in between authentication handshake requests.
at Microsoft.AspNetCore.Authentication.Negotiate.NegotiateHandler.HandleRequestAsync()
2022-06-14 10:02:46.092 -05:00 [ERR] Connection id "0HMIE2O4UMBTL", Request id "0HMIE2O4UMBTL:00000005": An unhandled exception was thrown by the application.
System.InvalidOperationException: An anonymous request was received in between authentication handshake requests.
at Microsoft.AspNetCore.Authentication.Negotiate.NegotiateHandler.HandleRequestAsync()
at Microsoft.AspNetCore.Authentication.Negotiate.NegotiateHandler.HandleRequestAsync()
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)
I do not know for sure what I have missed and the only information I can find regarding the above error message is about enabling SPNs, which I believe I have done correctly.
Please let me know what else I should try to get this working.
Thanks!