项目使用的是Identityserver4 此时有一个idserver4 端口5000 api 端口5001 mvcclient端口5002 三个项目

当api Startup中加入 下面红框中的代码时,访问api接口,没有权限,直接跳转到 http://localhost:5001/Account/Login?ReturnUrl=%2Fapi%2Fuser%2FGetUserList%3Fkw%3D
aspnet core Identity的问题
当把红框 里面的代码去掉之后,访问api接口会返回401未授权,
我想知道 这是为什么,

相关文章:

  • 2021-06-14
  • 2022-12-23
  • 2021-06-29
  • 2021-08-24
  • 2021-09-15
  • 2022-12-23
  • 2022-02-25
猜你喜欢
  • 2018-04-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-23
  • 2022-12-23
  • 2018-02-09
相关资源
相似解决方案