-
Notifications
You must be signed in to change notification settings - Fork 4k
How to customize the route path? #593
Comments
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". |
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. |
What about a simply redirect on IIS? |
I hope the identityServer4 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. |
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?
The text was updated successfully, but these errors were encountered: