ClientCredentialRequest type

CommonClientCredentialRequest

  • 範圍(scopes)-應用程式請求存取權限的範圍陣列。 通常只包含單一資源的 .default 範圍。 請參閱:https://learn.microsoft.com/azure/active-directory/develop/scopes-oidc#the-default-scope
  • authority - 權限機構的網址,即 MSAL 取得權杖的安全性憑證服務(STS)。
  • correlationId - 每個請求唯一的 GUID 設定,用於遠端追蹤請求以進行遙測。
  • skipCache - 跳過令牌快取查詢,強制請求權威取得新令牌。 預設為 False。
  • clientAssertion - 用於客戶端憑證流程的斷言字串或回調函式,回傳斷言字串(兩者皆為 Base64Url 編碼的簽名 JWT)
  • tokenQueryParameters - 將自訂查詢參數的字串對字串映射到 /token 呼叫中
type ClientCredentialRequest = Partial<
  Omit<
    CommonClientCredentialRequest,
    | "resourceRequestMethod"
    | "resourceRequestUri"
    | "requestedClaimsHash"
    | "clientAssertion"
    | "storeInCache"
  >
> & { clientAssertion?: string | ClientAssertionCallback }