AsyncARMChallengeAuthenticationPolicy Class
Adds a bearer token Authorization header to requests.
This policy internally handles Continuous Access Evaluation (CAE) challenges. When it can't complete a challenge, it will return the 401 (unauthorized) response from ARM.
- Inheritance
-
azure.core.pipeline.policies._authentication_async.AsyncBearerTokenCredentialPolicyAsyncARMChallengeAuthenticationPolicy
Constructor
AsyncARMChallengeAuthenticationPolicy(credential: AsyncTokenCredential, *scopes: str, **kwargs: Any)
Parameters
Methods
| on_challenge |
Authorize request according to an ARM authentication challenge |
on_challenge
Authorize request according to an ARM authentication challenge
async on_challenge(request: PipelineRequest, response: PipelineResponse) -> bool
Parameters
Returns
a bool indicating whether the policy should send the request
Feedback
Submit and view feedback for