代码之家  ›  专栏  ›  技术社区  ›  Arkadi

ABP招摇过市无法授权

  •  0
  • Arkadi  · 技术社区  · 4 年前

    我正在使用 abp.io IdentityServer4分离(分层)解决方案,我看到了 Swagger UI 有以下端点,但当我调用它们时,我得到错误401(未授权),而且Swagger UI默认情况下没有Authorize按钮。

    我应该如何解决这个问题,才能调用这些端点?

    enter image description here

    以下是我得到的错误响应:

    {
      "error": {
      "code": null,
      "message": "Authorization failed! Given policy has not granted.",
      "details": "AbpAuthorizationException: Authorization failed! Given policy has not granted.\r\nSTACK TRACE:    at 
      ...
    }
    
    0 回复  |  直到 4 年前