How to customize the route path?
I don't want to expose the default route path like "connect/token". Does it have any way to change it when inject the IdentityServer. If no, do you guys plan to support this extension feature in future?
What do you want to expose instead and why?
I prefer to use other route path for my project, I hope it would be customized, like "/oauth2/token".
no. not right now. and no plans either.
It is not that a human needs to type them - only machines.
Okay, thanks for your feedback.
To be honest, our case is, we have lots of sub systems need to do authentication via accessing an original authentication service that expose the route path is "/oauth2/token". For now, we want to use identityserver4 instead, meanwhile we don't want to change the original contracts, we'd like to customize the route path of IdentityServer to adapt our contracts. That's the context.
Understood. But we don't allow that right now. It is a bit more complex than it sounds.
The right way would be to get the real token endpoint from the discovery endpoint.
I've went through the IdentityServer code. It seems like all the Endpoints those are depend on the enum "EndpointName", not const strings, and actually, you transfer an dictionary(Constants.EndpointPathToNameMap) when construct EndpointRouter, perhaps you could expose a property that could be set outside, and replace this dictionary in constructor. Does it make sense?
We already went through that exercise and there are a couple of complications - CORS, endpoint with mutliple sub-endpoints (mostly discovery and UI related).
I added a feature request/backlog label to it. It def. won't happen for RTM (next week).
Feel free to do a POC and let us know.
I'm going to close, as it seems to be a dup of either #19 or #442. Feel free to join in on those threads.
What about a simply redirect on IIS?
I hope the identityServer4 can support customize the route path extension feature in future
- in old system we can't change the original contracts path
- it good for data distribution in Reverse proxy
- it friendly to a clearer description of the business
- so on expect it can support customize the route path extension feature in future!
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.