Share via


PopTokenAuthenticationPolicy.AuthenticateAndAuthorizeRequest Method

Definition

Sets the Authorization header on the Request by calling GetToken, or from cache, if possible.

protected void AuthenticateAndAuthorizeRequest (Azure.Core.HttpMessage message, Azure.Core.PopTokenRequestContext context);
member this.AuthenticateAndAuthorizeRequest : Azure.Core.HttpMessage * Azure.Core.PopTokenRequestContext -> unit
Protected Sub AuthenticateAndAuthorizeRequest (message As HttpMessage, context As PopTokenRequestContext)

Parameters

message
HttpMessage

The HttpMessage with the Request to be authorized.

context
PopTokenRequestContext

The TokenRequestContext used to authorize the Request.

Applies to