![]() |
VOOZH | about |
dotnet add package Authagonal.Server --version 0.4.0
NuGet\Install-Package Authagonal.Server -Version 0.4.0
<PackageReference Include="Authagonal.Server" Version="0.4.0" />
<PackageVersion Include="Authagonal.Server" Version="0.4.0" />Directory.Packages.props
<PackageReference Include="Authagonal.Server" />Project file
paket add Authagonal.Server --version 0.4.0
#r "nuget: Authagonal.Server, 0.4.0"
#:package Authagonal.Server@0.4.0
#addin nuget:?package=Authagonal.Server&version=0.4.0Install as a Cake Addin
#tool nuget:?package=Authagonal.Server&version=0.4.0Install as a Cake Tool
Drop-in authentication server for ASP.NET Core. Add OAuth 2.0, OpenID Connect, SAML SSO, and a built-in login UI to your app with three lines of code.
dotnet add package Authagonal.Server
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddAuthagonal(builder.Configuration);
var app = builder.Build();
app.UseAuthagonal();
app.MapAuthagonalEndpoints();
app.MapFallbackToFile("index.html");
app.Run();
{
"Issuer": "https://auth.example.com",
"Storage": {
"ConnectionString": "UseDevelopmentStorage=true"
}
}
That's it. You now have a fully functional auth server with:
Clients and SSO providers can be seeded from configuration:
{
"Clients": [
{
"Id": "my-app",
"Name": "My Application",
"GrantTypes": ["authorization_code", "refresh_token"],
"RedirectUris": ["https://app.example.com/callback"],
"Scopes": ["openid", "profile", "email", "offline_access"],
"RequirePkce": true,
"RequireSecret": false
}
],
"OidcProviders": [
{
"ConnectionId": "google",
"ConnectionName": "Google",
"MetadataLocation": "https://accounts.google.com/.well-known/openid-configuration",
"ClientId": "your-client-id",
"ClientSecret": "your-client-secret"
}
]
}
Register custom implementations before AddAuthagonal — they take precedence via TryAdd:
// Custom lifecycle hooks (audit logging, webhooks, etc.)
builder.Services.AddSingleton<IAuthHook, MyAuthHook>();
// Custom email delivery (SMTP, SES, Mailgun, etc.)
builder.Services.AddSingleton<IEmailService, MyEmailService>();
// Custom user provisioning into downstream apps
builder.Services.AddSingleton<IProvisioningOrchestrator, MyProvisioner>();
builder.Services.AddAuthagonal(builder.Configuration);
| Package | Description |
|---|---|
| Authagonal.Server | Full auth server — endpoints, middleware, services, login UI |
| Authagonal.Protocol | Embeddable OIDC/OAuth 2.0 protocol surface (no UI, no user store) |
| Authagonal.Storage | Azure Table Storage backend |
| Authagonal.Core | Core models, interfaces, and abstractions |
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.4.0 | 85 | 6/17/2026 |
| 0.3.19 | 54 | 6/17/2026 |
| 0.3.18 | 52 | 6/17/2026 |
| 0.3.17 | 42 | 6/17/2026 |
| 0.3.16 | 42 | 6/17/2026 |
| 0.3.15 | 227 | 6/16/2026 |
| 0.3.14 | 52 | 6/16/2026 |
| 0.3.13 | 112 | 6/15/2026 |
| 0.3.12 | 64 | 6/15/2026 |
| 0.3.11 | 81 | 6/15/2026 |
| 0.3.10 | 102 | 6/15/2026 |
| 0.3.9 | 54 | 6/15/2026 |
| 0.3.8 | 67 | 6/15/2026 |
| 0.3.7 | 71 | 6/14/2026 |
| 0.3.6 | 57 | 6/14/2026 |
| 0.3.5 | 69 | 6/14/2026 |
| 0.3.4 | 57 | 6/13/2026 |
| 0.3.3 | 91 | 5/30/2026 |
| 0.3.2 | 95 | 5/30/2026 |
| 0.3.1 | 89 | 5/30/2026 |