AuthenticationHandler Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |