Authagonal.Server
0.1.94
dotnet add package Authagonal.Server --version 0.1.94
NuGet\Install-Package Authagonal.Server -Version 0.1.94
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="Authagonal.Server" Version="0.1.94" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Authagonal.Server" Version="0.1.94" />
<PackageReference Include="Authagonal.Server" />
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 Authagonal.Server --version 0.1.94
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Authagonal.Server, 0.1.94"
#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 Authagonal.Server@0.1.94
#: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=Authagonal.Server&version=0.1.94
#tool nuget:?package=Authagonal.Server&version=0.1.94
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Authagonal.Server
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.
Quick start
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:
- OAuth 2.0 / OpenID Connect — Authorization code + PKCE, refresh tokens, client credentials
- SAML 2.0 SSO — SP-initiated flows with automatic metadata parsing
- External OIDC providers — Google, Microsoft, Okta, etc.
- Built-in login UI — Customizable SPA with localization (8 languages)
- Admin APIs — User management, SSO provider management, token administration
- Password policy — Configurable strength requirements
Configuration
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"
}
]
}
Extensibility
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);
Packages
| Package | Description |
|---|---|
| Authagonal.Server | Full auth server — endpoints, middleware, services, login UI |
| Authagonal.Storage | Azure Table Storage backend |
| Authagonal.Core | Core models, interfaces, and abstractions |
Links
| 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
- Authagonal.Core (>= 0.1.94)
- Authagonal.Storage (>= 0.1.94)
- Azure.Extensions.AspNetCore.DataProtection.Blobs (>= 1.5.0)
- Azure.Identity (>= 1.19.0)
- Azure.Security.KeyVault.Secrets (>= 4.9.0)
- Azure.Storage.Blobs (>= 12.27.0)
- BCrypt.Net-Next (>= 4.1.0)
- Fido2.AspNet (>= 4.0.0)
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 10.0.5)
- Microsoft.Bcl.Memory (>= 10.0.6)
- Microsoft.IdentityModel.JsonWebTokens (>= 8.17.0)
- Microsoft.IdentityModel.Tokens (>= 8.17.0)
- QRCoder (>= 1.6.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 |
|---|---|---|
| 0.1.94 | 84 | 4/21/2026 |
| 0.1.93 | 126 | 4/21/2026 |
| 0.1.92 | 78 | 4/21/2026 |
| 0.1.91 | 99 | 4/20/2026 |
| 0.1.90 | 90 | 4/20/2026 |
| 0.1.89 | 86 | 4/18/2026 |
| 0.1.88 | 124 | 4/18/2026 |
| 0.1.87 | 96 | 4/18/2026 |
| 0.1.86 | 101 | 4/17/2026 |
| 0.1.85 | 86 | 4/17/2026 |
| 0.1.84 | 97 | 4/16/2026 |
| 0.1.83 | 94 | 4/16/2026 |
| 0.1.82 | 119 | 4/14/2026 |
| 0.1.81 | 90 | 4/14/2026 |
| 0.1.79 | 97 | 4/14/2026 |
| 0.1.76 | 91 | 4/14/2026 |
| 0.1.74 | 96 | 4/13/2026 |
| 0.1.73 | 96 | 4/13/2026 |
| 0.1.72 | 101 | 4/13/2026 |
| 0.1.71 | 84 | 4/13/2026 |
Loading failed