# GitHubAppAuthHandler

Signs each GitHub request with the App's current installation token, renewing it as it ages.

Class 

`IntelligenceX.Telemetry.GitHub`

**Namespace**

`IntelligenceX.Telemetry.GitHub`

**Assembly**

`IntelligenceX`

**Source**

[GitHubAppCredentials.cs:194](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Telemetry/GitHub/GitHubAppCredentials.cs#L194)

**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](/api/intelligencex-telemetry-github-githubapptokensource/).

## Inheritance

- DelegatingHandler
- GitHubAppAuthHandler

Filter members 

Show inherited

## Constructors

`public GitHubAppAuthHandler(GitHubAppTokenSource tokens, HttpMessageHandler inner, string? fallbackToken = null)` [#](#constructor-ctor-intelligencex-telemetry-github-githubapptokensource-net-http-httpmessagehandler-string)

[GitHubAppCredentials.cs:194](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Telemetry/GitHub/GitHubAppCredentials.cs#L194)

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**

## Inherited Methods

`public void Dispose()` [#](#method-dispose)

Inherited from HttpMessageHandler

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Inherited Properties

`public HttpMessageHandler? InnerHandler { get; set; }` [#](#property-innerhandler)

Inherited from DelegatingHandler

## Fields

`public static readonly HttpRequestOptionsKey<bool> SignedByApp` [#](#field-signedbyapp)

[GitHubAppCredentials.cs:189](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Telemetry/GitHub/GitHubAppCredentials.cs#L189)

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

<!-- PowerForge markdown artifact sha256:0E86F7CE09CB223AB93B2815B67CF3F8884282F207060170F18D1DF8715120E0 -->
