IntelligenceX
Class

GitHubAppAuthHandler

IntelligenceX.Telemetry.GitHub

Namespace
IntelligenceX.Telemetry.GitHub
Assembly
IntelligenceX
Base
DelegatingHandler
Implements
IDisposable
Modifiers
sealed

Signs each GitHub request with the App's current installation token, renewing it as it ages. When renewal fails, the request goes out with the user token instead, and the App is tried again after GitHubAppTokenSource.RetryAfter.

Inheritance

  • DelegatingHandler
  • GitHubAppAuthHandler

Constructors

public GitHubAppAuthHandler(GitHubAppTokenSource tokens, HttpMessageHandler inner, string? fallbackToken = null) #

Creates the handler in front of inner, falling back to fallbackToken.

Parameters

tokens IntelligenceX.Telemetry.GitHub.GitHubAppTokenSource required
inner System.Net.Http.HttpMessageHandler required
fallbackToken string? = null optional

Fields

public static readonly HttpRequestOptionsKey<bool> SignedByApp #

Set on a request this handler signed as the App, so usage can be counted per identity.