BearerTokenAuthenticationPolicy.AuthorizeRequestAsync(HttpMessage) 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.
Executes before ProcessAsync(HttpMessage, ReadOnlyMemory<HttpPipelinePolicy>) or Process(HttpMessage, ReadOnlyMemory<HttpPipelinePolicy>) is called. Implementers of this method are expected to call AuthenticateAndAuthorizeRequest(HttpMessage, TokenRequestContext) or AuthenticateAndAuthorizeRequestAsync(HttpMessage, TokenRequestContext) if authorization is required for requests not related to handling a challenge response.
protected virtual System.Threading.Tasks.ValueTask AuthorizeRequestAsync (Azure.Core.HttpMessage message);
abstract member AuthorizeRequestAsync : Azure.Core.HttpMessage -> System.Threading.Tasks.ValueTask
override this.AuthorizeRequestAsync : Azure.Core.HttpMessage -> System.Threading.Tasks.ValueTask
Protected Overridable Function AuthorizeRequestAsync (message As HttpMessage) As ValueTask
Parameters
- message
- HttpMessage
The HttpMessage this policy would be applied to.
Returns
The ValueTask representing the asynchronous operation.
Applies to
Azure SDK for .NET