Provides low-level interfaces and helper methods for authentication in Azure SDK
Overall
score
97%
Build a configuration manager for an Azure service client that handles API key authentication with automatic key rotation capabilities.
Create a ConfigManager class that:
The manager should be designed to work with Azure service clients that accept key-based credentials for authentication.
@generates
/**
* Manages API key credentials for Azure service clients with support for key rotation.
*/
export class ConfigManager {
/**
* Creates a new configuration manager with an initial API key.
* @param initialKey - The initial API key to use for authentication
* @throws Error if the initial key is invalid
*/
constructor(initialKey: string);
/**
* Returns the current credential object that can be used with Azure service clients.
* @returns The current credential object
*/
getCredential(): unknown;
/**
* Rotates the API key to a new value.
* @param newKey - The new API key to use
* @throws Error if the new key is invalid
*/
rotateKey(newKey: string): void;
/**
* Returns the current API key value.
* @returns The current key as a string
*/
getCurrentKey(): string;
}Provides authentication interfaces and credential implementations for Azure services.
Install with Tessl CLI
npx tessl i tessl/npm-azure--core-authdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10