I’m having a problem using a load balancer before a .net core app on redirect from auth0 signin.
The original post is this one and I think I have the same problem, but with haproxy instead of nginx: https://auth0.com/forum/t/asp-net-core-loginexternal-not-working-with-https/3888.
We are using a Haproxy to offload the ssl (all requests are https) and redirecting internally to a linux server running Kestrel on Http. Using the setting
CallbackPath = new PathString("/signin-auth0") in my OpenIdConnectOptions always returns a http:// link. When the user is redirected i get a 404 page not found error. The https POST gets a 301 status code but never reaches his destination.
Has anyone had the same problem ? Is there a workaround? We can not change the internal structure and upgrade the Kestrel to https, like the old forum post suggested.
I was thinking about using the lock widget, but i would like to keep the login external (we have multiple apps with multiple third-party apps).