AuthenticationHandler Class

Definition

A DelegatingHandler implementation using standard .NET libraries.

public class AuthenticationHandler : System.Net.Http.DelegatingHandler
type AuthenticationHandler = class
    inherit DelegatingHandler
Public Class AuthenticationHandler
Inherits DelegatingHandler
Inheritance
AuthenticationHandler

Constructors

AuthenticationHandler(IAuthenticationProvider, AuthenticationHandlerOption)

Construct a new AuthenticationHandlerAn authentication provider to pass to AuthenticationHandler for authenticating requests.

AuthenticationHandler(IAuthenticationProvider, HttpMessageHandler, AuthenticationHandlerOption)

Construct a new AuthenticationHandler

Properties

AuthenticationProvider

AuthenticationProvider property

Methods

SendAsync(HttpRequestMessage, CancellationToken)

Sends a HTTP request and retries the request when the response is unauthorized. This can happen when a token from the cache expires between graph getting the request and the backend receiving the request

Applies to