OnBehalfOfRequest type

  • 範圍(scopes)-應用程式請求存取權限的範圍陣列。
  • authority - 權限機構的網址,即 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[] }