Authagonal.OidcProvider
0.1.94
dotnet add package Authagonal.OidcProvider --version 0.1.94
NuGet\Install-Package Authagonal.OidcProvider -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.OidcProvider" Version="0.1.94" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Authagonal.OidcProvider" Version="0.1.94" />
<PackageReference Include="Authagonal.OidcProvider" />
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.OidcProvider --version 0.1.94
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Authagonal.OidcProvider, 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.OidcProvider@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.OidcProvider&version=0.1.94
#tool nuget:?package=Authagonal.OidcProvider&version=0.1.94
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Authagonal.OidcProvider
A lightweight OIDC provider built on OpenIddict. Expose
authorization_code + PKCE (with optional refresh_token) endpoints while keeping your existing
user identity and cookie auth untouched.
The only thing you implement is IOidcSubjectResolver:
public sealed class MySubjectResolver : IOidcSubjectResolver
{
public Task<OidcSubject?> ResolveAsync(
ClaimsPrincipal principal,
OidcSubjectResolutionContext ctx,
CancellationToken ct) => Task.FromResult<OidcSubject?>(new OidcSubject
{
SubjectId = principal.FindFirstValue(ClaimTypes.NameIdentifier)!,
Email = principal.FindFirstValue(ClaimTypes.Email),
Name = principal.FindFirstValue(ClaimTypes.Name),
});
}
Getting started
builder.Services
.AddAuthagonalOidcProvider(o =>
{
o.Issuer = "https://auth.example.com";
o.AuthenticationScheme = CookieAuthenticationDefaults.AuthenticationScheme;
o.Clients.Add(new OidcClientDescriptor
{
ClientId = "spa",
RedirectUris = { "https://app.example.com/callback" },
AllowedScopes = { "offline_access" },
});
})
.AddCore(core =>
{
core.UseEntityFrameworkCore().UseDbContext<AppDbContext>();
})
.AddValidation();
builder.Services.AddScoped<IOidcSubjectResolver, MySubjectResolver>();
var app = builder.Build();
app.MapAuthagonalOidcEndpoints();
app.Run();
You pick the OpenIddict storage (EF Core, MongoDB, in-memory, etc.) — the provider library stays out of your persistence story.
| 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
- OpenIddict.AspNetCore (>= 7.4.0)
- OpenIddict.Server (>= 7.4.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 | 44 | 4/21/2026 |