79362921

Date: 2025-01-16 20:05:06
Score: 1
Natty:
Report link

Finally the solution for this case was to modify the app code by doing the following changes:

app.UseHttpsRedirection();

app.UseForwardedHeaders(new ForwardedHeadersOptions { ForwardedHeaders = Microsoft.AspNetCore.HttpOverrides.ForwardedHeaders.XForwardedProto,
});

Additionally, I performed some adjustments in apache server in the VirtualHost that handles requirements with port 80. This line was added:

Redirect permanent / "https://example.com/"

after those changes, the application was authenticated sucessfully against azure entra and the redirection was correct.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: willyMon