@azure/identity 4.3.0-beta.2 → 4.3.1-alpha.20240618.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -355,10 +355,11 @@ export declare class AzurePipelinesCredential implements TokenCredential {
355
355
  * AzurePipelinesCredential supports Federated Identity on Azure Pipelines through Service Connections.
356
356
  * @param tenantId - tenantId associated with the service connection
357
357
  * @param clientId - clientId associated with the service connection
358
- * @param serviceConnectionId - id for the service connection, as found in the querystring's resourceId key
358
+ * @param serviceConnectionId - Unique ID for the service connection, as found in the querystring's resourceId key
359
+ * @param systemAccessToken - The pipeline's <see href="https://learn.microsoft.com/azure/devops/pipelines/build/variables?view=azure-devops%26tabs=yaml#systemaccesstoken">System.AccessToken</see> value.
359
360
  * @param options - The identity client options to use for authentication.
360
361
  */
361
- constructor(tenantId: string, clientId: string, serviceConnectionId: string, options?: AzurePipelinesCredentialOptions);
362
+ constructor(tenantId: string, clientId: string, serviceConnectionId: string, systemAccessToken: string, options?: AzurePipelinesCredentialOptions);
362
363
  /**
363
364
  * Authenticates with Microsoft Entra ID and returns an access token if successful.
364
365
  * If authentication fails, a {@link CredentialUnavailableError} or {@link AuthenticationError} will be thrown with the details of the failure.
@@ -375,12 +376,6 @@ export declare class AzurePipelinesCredential implements TokenCredential {
375
376
  * @returns OIDC token from Azure Pipelines
376
377
  */
377
378
  private requestOidcToken;
378
- /**
379
- * Ensures all system env vars are there to form the request uri for OIDC token
380
- * @returns void
381
- * @throws CredentialUnavailableError
382
- */
383
- private ensurePipelinesSystemVars;
384
379
  }
385
380
 
386
381
  /**