Skip to content

Handling 302 redirects for login #1591

Answered by samsp-msft
conficient asked this question in Q&A
Discussion options

You must be logged in to vote

The use of a proxy will not be transparent to the back-end site, and the site needs to be aware of the proxy. The proxy will inform the destination of the original connection information using a series of x-forwarded-* headers.
ASP.NET Core has a middleware that will update the context values based on these headers - https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/proxy-load-balancer?view=aspnetcore-6.0. I think the login components will be using the context values so this should wire it up correctly, assuming you add the middleware on the backend site.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@conficient
Comment options

@Tratcher
Comment options

@conficient
Comment options

Answer selected by conficient
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants