So i am basically following this auth0 tutorial:
https://auth0.com/docs/quickstart/webapp/aspnet-core/01-login
https://github.com/auth0-samples/auth0-aspnetcore-mvc-samples/tree/master/Quickstart/01-Login
on my localhost and my test-environment the login completely works. Although the error i am getting now on my staging environment also rings a bell, and had that before. But I do not know how I fixed it at that point.
During logging in it gets redirect to the callback url => callback, and not following my redirect url as i am setting it.
as in the accountcontroller
[HttpGet]
[Route("login")]
public async Task Login(string returnUrl = "/home")
{
await HttpContext.ChallengeAsync(Auth0Constants.Auth0Scheme, new AuthenticationProperties
{
RedirectUri = returnUrl
});
}
so the big question; what am I missing?
EDIT: looking at the network traffic: the one that does work:
I see that I have 2 authorize calls (not sure why?).
and in the one that is not working:
where does the second Login call come from..?

