Share via


BearerTokenAuthenticationPolicy.AuthorizeRequest(HttpMessage) Method

Definition

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 void AuthorizeRequest (Azure.Core.HttpMessage message);
abstract member AuthorizeRequest : Azure.Core.HttpMessage -> unit
override this.AuthorizeRequest : Azure.Core.HttpMessage -> unit
Protected Overridable Sub AuthorizeRequest (message As HttpMessage)

Parameters

message
HttpMessage

The HttpMessage this policy would be applied to.

Applies to