Authagonal.Protocol 0.2.1

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

Authagonal.Protocol

Embeddable OIDC / OAuth 2.0 protocol surface extracted from Authagonal.Server.

Provides /connect/authorize, /connect/token, /connect/userinfo, /connect/par (RFC 9126 Pushed Authorization Requests), /.well-known/openid-configuration, and JWKS endpoints plus the token minting pipeline — nothing else. No user store, no SAML, no admin UI, no login pages.

Plug in your own identity via IOidcSubjectResolver and storage via IClientStore / IGrantStore / IScopeStore / ISigningKeyStore. Use this when you need to expose OIDC from an app that already has its own identity (e.g. share-link grants, service-to-service auth).

Quick start

dotnet add package Authagonal.Protocol
builder.Services.AddAuthagonalProtocol(opts =>
{
    opts.AuthenticationScheme = "Cookies"; // or your custom scheme
    opts.Clients.Add(new OidcClientDescriptor
    {
        ClientId = "my-rp",
        RedirectUris = { "https://rp.example.com/callback" },
        AllowedScopes = { "openid", "profile", "email" },
    });
});

builder.Services.AddScoped<IOidcSubjectResolver, MySubjectResolver>();
builder.Services.AddSingleton<IClientStore, MyClientStore>();
// ... IGrantStore, IScopeStore, ISigningKeyStore, ITenantContext

app.MapAuthagonalProtocolEndpoints();

Federation passthrough

OidcSubject.FederationClaims carries per-session claims received from an upstream IdP through to issued tokens, gated by the same scope-driven UserClaims whitelist as CustomAttributes. Federation values win on key collision and survive refresh rotations distinct from the per-user record.

Packages

Package Description
Authagonal.Core Core models, interfaces, and abstractions
Authagonal.Protocol Embeddable OIDC/OAuth 2.0 protocol surface
Authagonal.Storage Azure Table Storage backend
Authagonal.Server Full auth server — endpoints, middleware, services, login UI
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.Protocol:

Package Downloads
Authagonal.Server

Drop-in authentication server for ASP.NET Core. OAuth 2.0, OIDC, SAML SSO, and admin APIs.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.3.0 107 5/9/2026
0.2.6 103 5/9/2026
0.2.5 141 4/27/2026
0.2.4 107 4/27/2026
0.2.3 109 4/27/2026
0.2.2 152 4/26/2026
0.2.1 96 4/26/2026
0.2.0 96 4/26/2026
0.1.99 102 4/26/2026
0.1.98 115 4/26/2026