Closed filipw closed 7 years ago
This can also be handled by dynamic registration. That is not generally available. I created a library called TC.AUTHENTICATION to do that which is part of this download. https://bitbucket.org/tomcjones/idesgrp
Why not put a MW in front of IdSvr and change the Path in the request to be what you want.
Agreed - but it is also quite common.
Filip had it separately - but asked if we want to include such a simple middleware, e.g.
app.SetBasePath("https://login.mycompany.com");
we use this solution and it works fine behind Incapsula WAF http://amilspage.com/set-identityserver4-url-behind-loadbalancer/
I still like the idea.
IIRC we already sort of do that now. we'd just need to make the APIs public
Done in 2.0. You'd now do this:
services.AddIdentityServer(options =>
{
options.PublicOrigin = "https://identityserver.io";
});
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Issue / Steps to reproduce the problem
I host Identity Server behind a fairly complicated network setup and the Identity Server doesn't necessarily know reliably where it's running (especially since it's in a docker container - it thinks it's localhost root).
In order to get the discovery document to generate itself properly, I'd like to have the possibility to set my own custom host and base path. Ideally, it would be even correlated with the
IssuerUri
inIdentityServerOptions
.Workaround
Here is what I am doing at the moment:
ConfigureServices:
Configure
This can be done as an external middleware, but it feels to me it would be nice to have this built-in.