Set redirect_uri schema when using Github authentication in app running in docker behind load balancer #25015
Answered
by
Tratcher
marcuslindblom
asked this question in
General
-
When my app runs this code var redirectUrl = Url.Action("GithubCallback", "Auth", new { ReturnUrl = returnUrl });
var properties = _signInManager.ConfigureExternalAuthenticationProperties(provider, redirectUrl);
return Challenge(properties, provider); the redirect_uri is I have this configuration in place: services.Configure<ForwardedHeadersOptions>(options =>
{
options.ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto;
options.KnownNetworks.Add(new IPNetwork(IPAddress.Parse("10.244.0.0"), 16));
}); How can I configure the scheme to use when Challenge is called? |
Beta Was this translation helpful? Give feedback.
Answered by
Tratcher
Aug 19, 2020
Replies: 1 comment 4 replies
-
Sounds like your forwarders aren't working right. See this guide: https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/proxy-load-balancer?view=aspnetcore-3.1#troubleshoot Once you get that fixed then the generated urls should be right. |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
marcuslindblom
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sounds like your forwarders aren't working right. See this guide: https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/proxy-load-balancer?view=aspnetcore-3.1#troubleshoot
Once you get that fixed then the generated urls should be right.