aud(Audience)是受众的意思,这个一般指的是ApiResource。

ApiResource和ApiScope中指定的UserClaims最终会添加到生成的access_token中。可能会用于Api授权之类的事情。

ApiScope是一个新出现的实体,与ApiResource交互,在ApiResource中Scopes就是ApiScope中定义的,ApiScope是一个auth scope,验证范围,最终会写到AccessToken中,在携带AccessToken访问Api时,Api可以定义授权的policy,有一个RequiredScope扩展方法来限制AccessToken中必须携带某一个Scope。

参考:

https://stackoverflow.com/questions/45859032/what-is-different-between-claims-used-in-apiresource-and-scope-in-identityserver

https://identityserver4.readthedocs.io/en/release/reference/api_resource.html

相关文章:

  • 2021-11-05
  • 2022-03-09
  • 2021-08-21
  • 2022-02-12
  • 2021-07-27
  • 2021-10-03
  • 2021-05-22
猜你喜欢
  • 2021-09-01
  • 2021-12-05
  • 2021-11-11
  • 2021-05-06
  • 2021-06-16
  • 2021-08-28
相关资源
相似解决方案