Authagonal.Server 0.13.4

There is a newer version of this package available.
See the version list below for details.
dotnet add package Authagonal.Server --version 0.13.4
                    
NuGet\Install-Package Authagonal.Server -Version 0.13.4
                    
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.13.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Authagonal.Server" Version="0.13.4" />
                    
Directory.Packages.props
<PackageReference Include="Authagonal.Server" />
                    
Project file
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.13.4
                    
#r "nuget: Authagonal.Server, 0.13.4"
                    
#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.13.4
                    
#: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.13.4
                    
Install as a Cake Addin
#tool nuget:?package=Authagonal.Server&version=0.13.4
                    
Install as a Cake Tool

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 (10 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.Protocol Embeddable OIDC/OAuth 2.0 protocol surface (no UI, no user store)
Authagonal.AzureProvider Azure Table Storage backend
Authagonal.AwsProvider AWS backend, DynamoDB / S3 / Secrets Manager
Authagonal.Core Core models, interfaces, and abstractions
Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  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.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Authagonal.Server:

Package Downloads
Authagonal.Migration

One-time Duende IdentityServer → Authagonal migration engine, hosted runner, and CLI support.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.14.0 0 7/24/2026
0.13.4 50 7/24/2026
0.13.3 48 7/24/2026
0.13.2 71 7/23/2026
0.13.1 69 7/23/2026
0.13.0 69 7/23/2026
0.12.0 68 7/23/2026
0.11.0 77 7/23/2026
0.10.29 79 7/23/2026
0.10.28 78 7/23/2026
0.10.27 74 7/23/2026
0.10.26 73 7/23/2026
0.10.25 74 7/23/2026
0.10.24 80 7/22/2026
0.10.23 78 7/22/2026
0.10.22 75 7/22/2026
0.10.21 84 7/22/2026
0.10.20 82 7/22/2026
0.10.19 83 7/22/2026
0.10.18 86 7/22/2026
Loading failed