Class
GitHubAppAuthHandler
IntelligenceX.Telemetry.GitHub
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
- inner System.Net.Http.HttpMessageHandler
- fallbackToken string? = null
Inherited Methods
public void Dispose() #Inherited from HttpMessageHandler
Inherited Properties
public HttpMessageHandler? InnerHandler { get; set; } #Inherited from DelegatingHandler
Fields
public static readonly HttpRequestOptionsKey<bool> SignedByApp #Set on a request this handler signed as the App, so usage can be counted per identity.