首页 > 解决方案 > 格式化众所周知/身份配置(Json)响应

问题描述

任何人都知道如何使用 IdentityServer4 格式化来自 /well-known/identity-configuration 的响应吗?

目前,所有 Api 响应在启动时使用以下配置很好地格式化。我如何才能将 IdentityServer 也算在内?

services
    .AddMvc()
    .AddJsonOptions(options =>
    {
        // Catches all responses expect id-server..
        options.SerializerSettings.Formatting = Formatting.Indented;
    });

services
    .AddIdentityServer(options => {
        // ToDo: Format Response
    }

我已经查看了上面的选项对象,但在这里看不到任何灵魂..有人知道吗?

标签: c#jsonasp.net-coreidentityserver4

解决方案


推荐阅读