Class IdTokenAuthorizationHttpMessageHandler
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
- idTokenProviderIIdTokenProvider
- Service to retrieve the currently held OIDC - IdTokenfor the authenticated user.
Exceptions
- ArgumentNullException
- The - idTokenProviderwas- null.
Methods
GetAuthorizationValueAsync()
The value for the authorization header.
protected override Task<string> GetAuthorizationValueAsync()