Table of Contents

Class IdTokenAuthorizationHttpMessageHandler

Namespace
Tenduke.Core.Auth
Assembly
Tenduke.Core.dll

A DelegatingHandler that adds an Authorization header using the scheme IdToken and the value of the currently held OIDC IdToken for the authenticated user.

public class IdTokenAuthorizationHttpMessageHandler : AuthorizedHttpMessageHandler, IDisposable
Inheritance
IdTokenAuthorizationHttpMessageHandler
Implements
Inherited Members

Constructors

IdTokenAuthorizationHttpMessageHandler(IIdTokenProvider)

Initializes a new instance of the class.

public IdTokenAuthorizationHttpMessageHandler(IIdTokenProvider idTokenProvider)

Parameters

idTokenProvider IIdTokenProvider

Service to retrieve the currently held OIDC IdToken for the authenticated user.

Exceptions

ArgumentNullException

The idTokenProvider was null.

Methods

GetAuthorizationValueAsync()

The value for the authorization header.

protected override Task<string> GetAuthorizationValueAsync()

Returns

Task<string>