【问题标题】:How to debug Access token validation against Identityserver4如何针对 Identityserver4 调试访问令牌验证
【发布时间】:2018-01-21 01:14:28
【问题描述】:

我正在使用 IdentityServer4 来验证 Angular 4 客户端以保护 WebApi。 但我在授权时遇到了 401。我需要一种调试访问令牌验证过程的方法来帮助我找出问题所在。

【问题讨论】:

  • 在您的 API 中启用日志记录 - 这将为您提供更多信息。

标签: angular authorization jwt access-token identityserver4


【解决方案1】:

原来我用过 app.UseMvc();在启动类 Configure() 函数中的 app.UseIdentityServerAuthentication 之前

【讨论】:

  • 明确一点,注册路由前必须先注册Authentication服务
猜你喜欢
  • 2019-02-07
  • 2021-10-04
  • 2017-05-14
  • 2019-01-09
  • 1970-01-01
  • 1970-01-01
  • 2017-11-19
  • 1970-01-01
  • 2016-09-29
相关资源
最近更新 更多