IdentityServer4 icon indicating copy to clipboard operation
IdentityServer4 copied to clipboard

Replace/add custom token endpoint Url

Open smadurange opened this issue 8 years ago • 4 comments

I have been unable to find any information in the docs on this. IdentityServer4 by default uses "connect/token" Url to issue tokens. I'm trying to migrate an older application to use IdentityServer4. The older app has been using a different token endpoint from the one used by IdentityServer4.

So, for backward compatibility I need to either override the token endpoint so that the older clients can get the token from "api/token" instead of "connect/token" or provide a second endpoint "api/token" to issue tokens. Is this possible with IdentityServer4 and how to do this?

smadurange avatar Oct 08 '18 02:10 smadurange

I would suggest you use URL re-writing at the host to accomplish this.

leastprivilege avatar Oct 08 '18 05:10 leastprivilege

Thanks for the quick response. Followed this answer on SO and rewrote the Url. That's working even though could not find a way to update the OpenID discovery document at ~/.well-known/openid-configuration.

smadurange avatar Oct 08 '18 05:10 smadurange

You can add your custom endpoints by using CustomEntries which is explained in the docs. Yet I don't think you can edit an existing endpoint. Since your problem is resolved now, let it be so, just for your info.

http://docs.identityserver.io/en/release/topics/add_apis.html?highlight=Discovery%20Endpoint

arnaldo-infinite avatar Oct 08 '18 06:10 arnaldo-infinite

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.

lock[bot] avatar Jan 12 '20 21:01 lock[bot]