格式化知名/身份配置(Json)响应

时间:2019-05-19 16:02:52

标签: c# json asp.net-core identityserver4

任何人都知道如何使用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
    }

我已经看过上面的options对象,但是在这里看不到任何灵魂。任何人都知道吗?

0 个答案:

没有答案
相关问题