ClientCredentialRequest type

CommonClientCredentialRequest

  • scopes - 应用程序请求访问的范围数组。 通常仅包含单个资源的 .default 范围。 请参阅:https://dotnet.territoriali.olinfo.it/azure/active-directory/develop/scopes-oidc#the-default-scope
  • authority - 颁发机构 URL、MSAL 将从中获取令牌的安全令牌服务(STS)。
  • correlationId - 每个请求的唯一 GUID 集,用于跟踪用于遥测目的的请求端到端。
  • skipCache - 跳过令牌缓存查找并强制请求授权以获取新令牌。 默认值为 false。
  • clientAssertion - 一个断言字符串或一个回调函数,用于返回断言字符串(两者都是客户端凭据流中使用的 Base64Url 编码的有符号 JWT)
  • tokenQueryParameters - 添加到 /token 调用的自定义查询参数的字符串映射
type ClientCredentialRequest = Partial<
  Omit<
    CommonClientCredentialRequest,
    | "resourceRequestMethod"
    | "resourceRequestUri"
    | "requestedClaimsHash"
    | "clientAssertion"
    | "storeInCache"
  >
> & { clientAssertion?: string | ClientAssertionCallback }