Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
@azure-tools/test-credential
Advanced tools
Readme
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.
Add this library as a dev dependency in your project.
rush add -p @azure-tools/test-credential --dev
import { createTestCredential } from "@azure-tools/test-credential";
const credential = createTestCredential();
This library provides the credential to be used in the tests
In playback mode
NoOpCredential
(does not make a request to AAD and produces a fake access_token)In record/live modes
ClientSecretCredential
from @azure/identity
(expects AZURE_TENANT_ID, AZURE_CLIENT_ID, AZURE_CLIENT_SECRET in your environment or in the .env file)Try out this package in your application and provide feedback!
Log an issue at https://github.com/Azure/azure-sdk-for-js/issues
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.
FAQs
Test utilities library that provides the test credential
We found that @azure-tools/test-credential demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.