Provides low-level interfaces and helper methods for authentication in Azure SDK
Overall
score
97%
Build an API client that implements Proof-of-Possession (PoP) token-based authentication for making secure HTTP requests to a protected resource.
Your implementation must:
The API client should accept:
When the client makes a request:
@generates
/**
* Options for making a PoP-authenticated API request
*/
export interface PopApiClientOptions {
/** The credential to use for authentication */
credential: any;
/** The target resource URL */
resourceUrl: string;
/** The HTTP method for the request */
method: string;
/** The nonce value for PoP token binding */
nonce: string;
/** The scope(s) to request */
scope: string | string[];
}
/**
* Makes an API request using Proof-of-Possession token authentication
*
* @param options - Configuration options for the PoP-authenticated request
* @returns A promise that resolves when the request is successfully authenticated
* @throws Error if token retrieval fails or returns invalid token type
*/
export async function makePopRequest(options: PopApiClientOptions): Promise<void>;Provides authentication interfaces and token validation utilities.
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