I am deploying a .NET core 3.1 application to AWS Elastic Beanstalk.
My pipeline is HTTPS -> ALB -> HTTP -> Instance.
The problem I am facing is that when I require authentication, the redirect Location: header is http and absolute and the browser redirects incorrectly.
To resolve this, I need to either:
- Make the
Location:header relative, or - Get the
Location:header to be https.
I am using app.UseForwardedHeaders() in my Startup.cs file as per Configure ASP.NET Core to work with proxy servers and load balancers, to try to make it https, but it still is http.
What needs to be done to get ASP.NET core Identity to work on Elastic Beanstalk?