BearerTokenAuthenticationPolicy.AuthorizeRequestOnChallengeAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 System.Threading.Tasks.ValueTask<bool> AuthorizeRequestOnChallengeAsync (Azure.Core.HttpMessage message);
abstract member AuthorizeRequestOnChallengeAsync : Azure.Core.HttpMessage -> System.Threading.Tasks.ValueTask<bool>
override this.AuthorizeRequestOnChallengeAsync : Azure.Core.HttpMessage -> System.Threading.Tasks.ValueTask<bool>
Protected Overridable Function AuthorizeRequestOnChallengeAsync (message As HttpMessage) As ValueTask(Of 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.