Class OAuthHandler
HTTP message delegating handler that transparently performs OAuth 2.0 authentication with a client secret. Performs OpenID Connect discovery to find the token endpoint.
public class OAuthHandler : DelegatingHandler, IDisposable
- Inheritance
-
objectOAuthHandler
- Implements
- Inherited Members
Constructors
OAuthHandler(OAuthOptions, HttpMessageHandler?)
Creates a new OAuth handler.
public OAuthHandler(OAuthOptions oAuthOptions, HttpMessageHandler? innerHandler = null)
Parameters
oAuthOptionsOAuthOptionsOptions for OAuth 2.0 / OpenID Connect authentication.
innerHandlerHttpMessageHandlerAn optional inner HTTP message handler to delegate to.
Methods
Dispose(bool)
protected override void Dispose(bool disposing)
Parameters
disposingbool
SendAsync(HttpRequestMessage, CancellationToken)
protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
Parameters
requestHttpRequestMessagecancellationTokenCancellationToken