Authagonal.Server 0.1.90

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

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 120 4/14/2026
0.1.81 91 4/14/2026
0.1.79 98 4/14/2026
0.1.76 92 4/14/2026
0.1.74 98 4/13/2026
0.1.73 98 4/13/2026
0.1.72 103 4/13/2026
0.1.71 86 4/13/2026
Loading failed