Search code examples
identityserver4

Why does my IdentityServer4 discovery document lack formatting?


When I use the IdentityServer4 Sample programs and navigate to

http://localhost:5000/.well-known/openid-configuration

The page shows json without formatting.

I am expecting it to be formatted as per the bottom of this page

enter image description here How do I fix it ?


Solution

  • The JSON Formatters are a browser plugins. The discovery document of Identity Server (and every other JSON result page) are coming as a RAW Json. You need some formatter and it will beautify the page for you.

    Here are some, for some of the browsers (on which I can test and confirm):

    Also JSONView has versions for both of the browsers.

    Sorry I don't have Safari to try and confirm something on it, but I'm pretty sure that there are a lot of plugins.