Share via


BaseAuthorizationHeaderProvider Class

Definition

Base class for custom implementations of IAuthorizationHeaderProvider that would still want to leverage the default implementation for the bearer and Pop protocols.

public class BaseAuthorizationHeaderProvider : Microsoft.Identity.Abstractions.IAuthorizationHeaderProvider
type BaseAuthorizationHeaderProvider = class
    interface IAuthorizationHeaderProvider
Public Class BaseAuthorizationHeaderProvider
Implements IAuthorizationHeaderProvider
Inheritance
BaseAuthorizationHeaderProvider
Implements

Constructors

BaseAuthorizationHeaderProvider(IServiceProvider)

Constructor from a service provider

Methods

CreateAuthorizationHeaderAsync(IEnumerable<String>, AuthorizationHeaderProviderOptions, ClaimsPrincipal, CancellationToken)

Creates an authorization header for calling a protected web API on behalf of a user or the application.

CreateAuthorizationHeaderForAppAsync(String, AuthorizationHeaderProviderOptions, CancellationToken)

Creates the authorization header used to call a protected web API on behalf of the application itself.

CreateAuthorizationHeaderForUserAsync(IEnumerable<String>, AuthorizationHeaderProviderOptions, ClaimsPrincipal, CancellationToken)

Creates the authorization header used to call a protected web API on behalf of a user.

Applies to