BaseAddressAuthorizationMessageHandler Class

Definition

A DelegatingHandler that attaches access tokens to outgoing HttpResponseMessage instances. Access tokens will only be added when the request URI is within the application's base URI.

C#
public class BaseAddressAuthorizationMessageHandler : Microsoft.AspNetCore.Components.WebAssembly.Authentication.AuthorizationMessageHandler
Inheritance
BaseAddressAuthorizationMessageHandler

Constructors

Methods

ConfigureHandler(IEnumerable<String>, IEnumerable<String>, String)

Configures this handler to authorize outbound HTTP requests using an access token. The access token is only attached if at least one of authorizedUrls is a base of RequestUri.

(Inherited from AuthorizationMessageHandler)
SendAsync(HttpRequestMessage, CancellationToken) (Inherited from AuthorizationMessageHandler)

Explicit Interface Implementations

Applies to

Product Versions
ASP.NET Core 3.1, 5.0, 6.0, 7.0, 8.0, 9.0