Share via


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.

public ref class BaseAddressAuthorizationMessageHandler : Microsoft::AspNetCore::Components::WebAssembly::Authentication::AuthorizationMessageHandler
public class BaseAddressAuthorizationMessageHandler : Microsoft.AspNetCore.Components.WebAssembly.Authentication.AuthorizationMessageHandler
type BaseAddressAuthorizationMessageHandler = class
    inherit AuthorizationMessageHandler
Public Class BaseAddressAuthorizationMessageHandler
Inherits AuthorizationMessageHandler
Inheritance
BaseAddressAuthorizationMessageHandler

Constructors

BaseAddressAuthorizationMessageHandler(IAccessTokenProvider, NavigationManager)

Initializes a new instance of BaseAddressAuthorizationMessageHandler.

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

IDisposable.Dispose() (Inherited from AuthorizationMessageHandler)

Applies to