Authagonal.Migration 0.13.4

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

Authagonal.Migration

One-time migration from Duende IdentityServer (SQL Server) into Authagonal's stores.

Ships three things:

  • DuendeMigrationEngine — reads a Duende ConfigurationDb/IdentityDb and writes users, external logins, roles, scopes, clients, API-resource flattening, SAML/OIDC providers, SSO domains, MFA credentials, and (optionally) refresh tokens through Authagonal's store abstractions. Product-agnostic: it writes stores directly and never triggers host provisioning callbacks.
  • DuendeMigrationHostedRunner — a leader-gated BackgroundService that runs the engine exactly once per configured Version on deploy, without blocking startup. Wire it with services.AddAuthagonalDuendeMigration(configuration) after AddAuthagonal.
  • CLI support — the same engine drives tools/Authagonal.Migration.Cli for local/offline runs.

Configuration (Migration section)

{
  "Migration": {
    "Enabled": false,
    "DryRun": false,
    "Version": "1",
    "UsersMode": "CreateOnly",
    "MigrateClients": true,
    "MigrateRefreshTokens": false,
    "LeaseWaitMinutes": 10,
    "StartupDelaySeconds": 30,
    "Source": { "ConnectionString": "Server=...;Database=...;" }
  }
}
  • DryRun produces the full validation report (id charset/length, duplicate emails, table/column inventory, per-pass counts) and writes nothing.
  • Version is the run marker's RowKey — bump it to re-run a delta sweep. Only a Completed, non-DryRun marker blocks a re-run.
  • UsersModeCreateOnly (default; skip existing) or Upsert (overwrite). Never Upsert post-cutover — it would clobber rehashed passwords and new MFA.

Status endpoint

GET /admin/migration/status returns the latest marker + last report, gated by the IdentityAdmin authorization policy like the other admin endpoints.

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

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.14.0 0 7/24/2026
0.13.4 26 7/24/2026
0.13.3 40 7/24/2026