Adding custom endpoint to IdentityServer4
- Firstly, setup an IdentityServer project, open up the command line and paste these commands:
- The next step is to build and run the solution correctly as following:
- Add your custom controller to project:
- Add your endpoint to the discovery document, like this:
- Finally, run the project and now you can see your custom endpoint on the discovery document:
No results for your search, please try with something else.
Great! You've successfully subscribed.
Great! Next, complete checkout for full access.
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.