Hi,
Let me explain the context before the question.
I’m using ASP.NET Core MVC SDK for regular app (latest version). I’m successfully authenticate on the local machine (running app from IDE, Rider) and using redirection to HTTPS. So that all works via HTTPS. When I try to configure and use locally HTTP, I cannot authenticate. I see the error:
We clearly see that when the app uses HTTPS it’s fine, and when HTTP it’s not.
We are deploying the app to k8s, behind ingress which terminates SSL. So that the app itself receives HTTP requests from the proxy, even we have HTTPS on internet. Here come the issue: the SDK thinks that it’s working with HTTP and produce the following symptoms:
- the SDK adds “redirect_uri=http://…” and load Auth0 page with error: Callback URL mismatch.
- if we change manually http to https and continue, then I can login, but the error as mention above for HTTP is shown (Correlation failed)
Do I need to have a special configuration of ingress service in k8s for SDK to work? Where should we check the issue?
Would be glad to any advices.
Thanks,