AzureKeyCredentialPolicy Class

Adds a key header for the provided credential.

Inheritance
azure.core.pipeline.policies._base.SansIOHTTPPolicy
AzureKeyCredentialPolicy

Constructor

AzureKeyCredentialPolicy(credential: AzureKeyCredential, name: str, **kwargs: Any)

Parameters

credential
AzureKeyCredential
Required

The credential used to authenticate requests.

name
str
Required

The name of the key header used for the credential.

Methods

on_request

Is executed before sending the request from next policy.

on_request

Is executed before sending the request from next policy.

on_request(request)

Parameters

request
PipelineRequest
Required

Request to be modified before sent from next policy.