1.3.1 • Published 1 year ago

@azure-tools/test-credential v1.3.1

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Azure Tools - Test Credential

Note: This project is a test utility that assits with testing the packages maintained at the Azure SDK for JavaScript repository. This is not intended for the public utilization.

This library provides a TokenCredential implementation for testing Azure SDK packages. This library is supposed to be utilized along with the @azure-tools/test-recorder library for testing Azure SDKs.

Getting started

Installation

Add this library as a dev dependency in your project.

rush add -p @azure-tools/test-credential --dev

Key concepts

Usage

import { createTestCredential } from "@azure-tools/test-credential";

const credential = createTestCredential();

This library provides the credential to be used in the tests

In playback mode

  • returns a NoOpCredential (does not make a request to AAD and produces a fake access_token)

In record/live modes

  • returns a ClientSecretCredential from @azure/identity (expects AZURE_TENANT_ID, AZURE_CLIENT_ID, AZURE_CLIENT_SECRET in your environment or in the .env file)
  • AAD traffic won't be recorded if this credential is used.

Next steps

Try out this package in your application and provide feedback!

Troubleshooting

Log an issue at https://github.com/Azure/azure-sdk-for-js/issues

Contributing

If you'd like to contribute to this library, please read the contributing guide to learn more about how to build and test the code.

Impressions

1.3.1

1 year ago

1.3.0

1 year ago

1.2.0

1 year ago

2.1.0

1 year ago

1.1.0

1 year ago

2.0.0

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

3 years ago

1.0.0

3 years ago