【发布时间】:2017-01-10 21:58:06
【问题描述】:
就像这个问题“Integration testing with in-memory IdentityServer”一样,我想对我的 IdentityServer4 实现进行一些集成测试。
我已经按照本教程 IDENTITYSERVER4, WEB API AND ANGULAR2 IN A SINGLE ASP.NET CORE PROJECT 添加了一个 API,用于管理与我的 IdentityServer4 相同的项目中的用户。
但集成测试失败,因为 IdentityServer 尝试使用 HTTP 请求调用 discoveryEndpoint。
所以在这个问题“Integration testing with in-memory IdentityServer”@emedbo 中创建了一个 FakeAccessTokenValidation,但我不知道该怎么做。
谢谢。
【问题讨论】:
标签: c# asp.net-core-1.0 identityserver4