Share via


BearerTokenAuthenticationPolicy.AuthorizeRequestOnChallenge Method

Definition

Executed in the event a 401 response with a WWW-Authenticate authentication challenge header is received after the initial request. The default implementation will attempt to handle Continuous Access Evaluation (CAE) claims challenges.

protected virtual bool AuthorizeRequestOnChallenge (Azure.Core.HttpMessage message);
abstract member AuthorizeRequestOnChallenge : Azure.Core.HttpMessage -> bool
override this.AuthorizeRequestOnChallenge : Azure.Core.HttpMessage -> bool
Protected Overridable Function AuthorizeRequestOnChallenge (message As HttpMessage) As Boolean

Parameters

message
HttpMessage

The HttpMessage to be authenticated.

Returns

A boolean indicating whether the request was successfully authenticated and should be sent to the transport.

Remarks

Service client libraries may override this to handle service specific authentication challenges.

Applies to