Ivy.Auth.GitHub
1.2.10
dotnet add package Ivy.Auth.GitHub --version 1.2.10
NuGet\Install-Package Ivy.Auth.GitHub -Version 1.2.10
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Ivy.Auth.GitHub" Version="1.2.10" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Ivy.Auth.GitHub" Version="1.2.10" />
<PackageReference Include="Ivy.Auth.GitHub" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Ivy.Auth.GitHub --version 1.2.10
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Ivy.Auth.GitHub, 1.2.10"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Ivy.Auth.GitHub@1.2.10
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Ivy.Auth.GitHub&version=1.2.10
#tool nuget:?package=Ivy.Auth.GitHub&version=1.2.10
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Ivy.Auth.GitHub
GitHub authentication provider for Ivy Framework using OAuth 2.0.
Features
- GitHub OAuth 2.0 authentication flow
- User information retrieval from GitHub API
- Access token validation
- Support for GitHub user email addresses
Configuration
Add the following configuration to your appsettings.json or environment variables:
{
"GitHub": {
"ClientId": "your_github_client_id",
"ClientSecret": "your_github_client_secret",
"RedirectUri": "https://your-app.com/auth/github/callback"
}
}
GitHub App Setup
- Go to GitHub Settings > Developer settings > OAuth Apps
- Click "New OAuth App"
- Fill in the application details:
- Application name: Your application name
- Homepage URL: Your application URL
- Authorization callback URL: The redirect URI configured above
- Copy the Client ID and Client Secret to your configuration
Usage
- Register the HttpClient factory in your DI container:
var server = new Server();
server.Services.AddHttpClient("GitHubAuth", client =>
{
client.DefaultRequestHeaders.Add("User-Agent", "Ivy-Framework");
client.DefaultRequestHeaders.Add("Accept", "application/vnd.github+json");
client.DefaultRequestHeaders.Add("X-GitHub-Api-Version", "2022-11-28");
});
// Ensure IConfiguration is registered
server.Services.AddSingleton(server.Configuration);
- Configure the GitHub Auth Provider using dependency injection:
using Ivy.Auth.GitHub;
// Configure GitHub Auth Provider - UseAuth will create the provider via DI
server.UseAuth<GitHubAuthProvider>(c => c.UseGitHub());
await server.RunAsync();
Required Scopes
The GitHub OAuth app requests the following scopes:
user:email- Access to user's email addresses
Notes
- GitHub OAuth tokens are long-lived and don't have refresh tokens
- The provider automatically handles email verification and primary email selection
- User information includes GitHub username, display name, and avatar URL
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Ivy (>= 1.2.10)
- Microsoft.Extensions.Http (>= 9.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.2.10 | 85 | 1/11/2026 |
| 1.2.10-pre-20260116095123 | 0 | 1/16/2026 |
| 1.2.10-pre-20260116094016 | 2 | 1/16/2026 |
| 1.2.10-pre-20260115151459 | 32 | 1/15/2026 |
| 1.2.10-pre-20260113113902 | 55 | 1/13/2026 |
| 1.2.8 | 83 | 1/11/2026 |
| 1.2.7 | 124 | 1/9/2026 |
| 1.2.7-pre-20260111152546 | 76 | 1/11/2026 |
| 1.2.6-pre-20260108131150 | 76 | 1/8/2026 |
| 1.2.6-pre-20260108123934 | 87 | 1/8/2026 |
| 1.2.6-pre-20260104161934 | 85 | 1/4/2026 |