c# - 格式化众所周知/身份配置(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
}
我已经查看了上面的选项对象,但在这里看不到任何灵魂..有人知道吗?
解决方案
推荐阅读
- javascript - 如何创建一个模糊透明的 Bootstrap 模态标题和左侧模态边栏,显示在网站后面?
- php - PHP simplehtmldom在空白表结构中查找文本
- mercurial - Mercurial hg(v4) 自给定修订版以来获取主干提交
- ocaml - Ocaml Lwt 类型混淆
- docker - docker-compose 挂载的卷为空
- linux - 如何调试 'ip link add vrf-blue type vrf table 10' RTNETLINK 答案:不支持操作
- angular - Angular 7拦截-发出请求时如何修复重复的HttpClient调用
- c++ - 如何将此指针与指向成员函数的指针一起使用
- python - Python 中的多处理入门
- jquery - 如何在 div 上显示 div 然后在 10 秒后消失?