I am attempting to set up OIDC w/ Azure in a Docker set up and I cannot get any variation of it to work. I’ve even stripped my dockerfile to the bare minimum. I get the following error in the browser:
And the following error in the logs:
An unhandled exception was thrown by the application. System.FormatException: String ‘= true’ was not recognized as a valid Boolean.
That did something! I now see the MS login screen, but I’m getting a 500 for the redirect/callback.
The cookie '.AspNetCore.OpenIdConnect.Nonce.CfDJ8OprJGyFJ2FBtF0sgmrp9SRTz0JFne4N3x9-R_xwvuS2Ag53E5zlBLyr88xptv1QUkjBOGsnFTgl3wua_5itjles7y6Kqsb3aADW9K7RtUt2HRXIWPlTQdR-b_g4elGKLHcfF4sLE3r4elPTRDnWl169ZSXcW-dxkh9vQJfpcoyVw2nb99VJZ3wOqMLtRihTCISaigeMXn9OX7HmunkWQYXBax697LDxvZoI5twhY-Si2jz5wQXbDhjBHB_4pYdjtkGrYD77r4RDZRuMi_g_sZY' has set 'SameSite=None' and must also set 'Secure'.
warn: Microsoft.AspNetCore.Http.ResponseCookies[1]
The cookie '.AspNetCore.Correlation.q-hkg6J7hILPvUUmXCZtZm70__I9gNNeOKtchVd3T8U' has set 'SameSite=None' and must also set 'Secure'.
warn: Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectHandler[15]
'.AspNetCore.Correlation.q-hkg6J7hILPvUUmXCZtZm70__I9gNNeOKtchVd3T8U' cookie not found.
fail: Microsoft.AspNetCore.Server.Kestrel[13]
Connection id "0HMC8P7QM2QJ8", Request id "0HMC8P7QM2QJ8:00000003": An unhandled exception was thrown by the application.
System.Exception: An error was encountered while handling the remote login.
---> System.Exception: Correlation failed.
--- End of inner exception stack trace ---
at Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler`1.HandleRequestAsync()
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)