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