OnBehalfOfRequest type

  • scopes - 应用程序请求访问的范围数组。
  • authority - 颁发机构 URL、MSAL 将从中获取令牌的安全令牌服务(STS)。
  • correlationId - 每个请求的唯一 GUID 集,用于跟踪用于遥测目的的请求端到端。
  • oboAssertion - 发送到中间层 API 的访问令牌。 此令牌必须具有发出此 OBO 请求的应用受众。
  • skipCache - 跳过令牌缓存查找并强制授权请求以获取新令牌。 默认值为 false。
  • tokenQueryParameters - 添加到 /token 调用的自定义查询参数的字符串映射
type OnBehalfOfRequest = Partial<
  Omit<
    CommonOnBehalfOfRequest,
    | "oboAssertion"
    | "scopes"
    | "resourceRequestMethod"
    | "resourceRequestUri"
    | "requestedClaimsHash"
    | "storeInCache"
  >
> & { oboAssertion: string; scopes: string[] }