Abblix/Oidc.Server
حول
Flexible OpenID Connect and OAuth 2.0 server-side implementation for modern ASP.NET projects
الأمان والخصوصيةالنمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- +٢
- خلال 15 يومًا
- +٢
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصل⭐ Star us on GitHub: your support motivates us a lot! 🙏😊
Add an OpenID Connect provider to your own ASP.NET Core app. It runs inside your app rather than as a separate server to deploy and operate.
📑 For the full picture, see the technical overview.
Table of Contents
- About
- Quickstart
- Packages
- Certification
- Upgrading
- Documentation
- Abblix Account
- Feedback
- License
- Contacts
🚀 About
Abblix OIDC Server turns your ASP.NET Core application into an OpenID Connect provider. Rather than deploying and operating a separate identity server, you embed the protocol directly into your app, so your users, your data, and your UI stay inside your product.
- A library inside your app, not a server you run: the OpenID Connect endpoints run in your process, so users, data, and UI never leave it.
- Current with the modern security stack: DPoP, PAR, JARM, RAR, CIBA, device authorization, token exchange, certificate-bound tokens and JWT introspection responses, alongside the OAuth 2.0 and OpenID Connect core.
- Security profiles the server enforces per client or per tenant, not certified: FAPI 2.0, FAPI 2.0 Message Signing and FAPI 1.0 Advanced, which also holds CIBA clients to FAPI-CIBA. Every 3.x release runs their OpenID Foundation conformance plans.
- Many issuers in one deployment: each tenant has its own clients, keys and security profile, declared at startup or added while the server runs. The free tier allows one production issuer, see License.
- Engineering you can audit: a large automated test suite, top SonarCloud security, reliability, and maintainability ratings, and a CodeQL scan of every push to the development branch.
- Modern .NET, minimal friction: requires .NET 11 and the .NET 11 SDK, with drop-in adapters for both MVC and Minimal API. A host on .NET 8, 9 or 10 uses 2.x, which still receives security fixes (see the Security Policy).
- Observable through OpenTelemetry: each endpoint request gets its own span and metrics, the span names the client it served, and the structured logs carry the trace of the request they belong to and record each token issued and each client registered, changed or removed.
Under the hood, the library leans on modular and hexagonal architecture and the standard .NET DI container, which keeps it testable and easy to extend. It ships two ASP.NET Core integration adapters that expose the same OpenID Connect endpoints (one for MVC controllers and routing, one for Minimal API endpoint routing), so you adopt whichever hosting model your application already uses, without taking a dependency on the other.
⚡ Quickstart
You need the .NET 11 SDK. Install the Minimal API adapter, then register the server and map its endpoints in Program.cs:
dotnet add package Abblix.OIDC.Server.MinimalAPI
using Abblix.Jwt;
using Abblix.Oidc.Server.Features.Consents;
using Abblix.Oidc.Server.Features.MultiTenancy;
using Abblix.Oidc.Server.MinimalApi;
var builder = WebApplication.CreateBuilder(args);
// Grants every client everything it asks for, which suits only clients of your own;
// to ask the end user for consent, register your own IUserConsentsProvider instead
builder.Services.AddConsentGrantedForEveryClient();
// Turn your ASP.NET Core app into an OpenID Connect provider serving one issuer
builder.Services.AddOidcServices(options => options.Tenants.Add(new TenantDefinition
{
Id = "main",
// The address the app is served on, written into every token it issues.
// Set it as "Issuer" in appsettings.json or any other configuration source
Issuer = new Uri(builder.Configuration["Issuer"]
?? throw new InvalidOperationException("Set Issuer to the address the app is served on")),
LoginUri = new Uri("/Auth/Login", UriKind.Relative),
SigningKeys = [JsonWebKeyFactory.CreateRsa(PublicKeyUsages.Signature)],
}));
var app = builder.Build();
app.UseCors();
app.MapOidcEndpoints();
app.Run();
The issuer comes from configuration, so add it to appsettings.json before the first run:
{
"Issuer": "https://localhost:5001"
}
An MVC application installs Abblix.OIDC.Server.MVC and calls app.MapOidcControllers() instead. Some hosts also call app.UseMultiTenancy(); Upgrading to 3.0 says which.
This is the outline, not a complete application: it serves discovery and the signing keys, and it issues a token once it has a client, a login page and your user store. The Getting Started Guide builds a complete, runnable solution, with caches and keys for several instances.
📦 Packages
The quickstart uses the Minimal API adapter; an MVC application installs Abblix.OIDC.Server.MVC. Both adapters expose the same OpenID Connect endpoints and pull in the core Abblix.OIDC.Server package as a dependency, so pick the one that matches how your application maps requests. For hosts that wire the protocol layer directly, install Abblix.OIDC.Server instead.
The first four packages below come with the server. The rest are optional: add each one only if you actually need its feature.
| Package | What it adds |
|---|---|
| Abblix.OIDC | The OAuth 2.0 and OpenID Connect vocabulary the server shares with its clients |
| Abblix.JWT | JWT signing, encryption and validation on the platform's own cryptography |
| Abblix.SecurityEvents | Security Event Tokens |
| Abblix.DependencyInjection | The registration patterns the server is built on |
| Abblix.JWT.Vault, Abblix.JWT.Azure | Signing and decryption keys held in, or sealed by, HashiCorp Vault or OpenBao Transit, or Azure Key Vault (see External key custodians) |
| Abblix.OIDC.Server.SharedSignals | A Shared Signals transmitter for each tenant of the server |
| Abblix.SharedSignals, .MinimalAPI, .Redis | OpenID Shared Signals Framework 1.0 transmitter and receiver, its endpoints, and a Redis event outbox for several replicas |
| Abblix.SecurityEvents.CAEP, .RISC, .MinimalAPI | The CAEP and RISC security event types, and endpoints receiving security events |
🎓 Certification
Versions 1.x and 2.x are certified by the OpenID Foundation in every OpenID Connect provider profile and every logout profile, and 3.x is being prepared for certification; every 3.x release runs the same conformance plans. The certified profiles page links each official test result.
⬆️ Upgrading
Each release that asks something of a host has a guide that lists what changes and how:
- Upgrading to 3.1 from 3.0
- Upgrading to 3.0 from 2.x
📚 Documentation
Getting Started
The Getting Started Guide builds a working OpenID Connect provider on ASP.NET MVC step by step.
Migrating from IdentityServer
Migrating from IdentityServer4 or Duende walks through a real migration end to end: dotnet/eShop's Identity.API moved from Duende IdentityServer onto Abblix OIDC Server, every decision named along the way.
Shared Signals
A working Shared Signals transmitter and receiver for ASP.NET Core shows two hosts exchanging a signed Security Event Token over HTTPS, each verifying the other.
Client ID Metadata Documents
A client can use the HTTPS URL of its metadata document as its client_id instead of registering first. To accept such clients, call AddClientIdMetadataDocuments() on the result of AddOidcServices; the server metadata then advertises client_id_metadata_document_supported. The feature is based on draft-ietf-oauth-client-id-metadata-document-03 and is experimental, so using it in code raises the ABX9001 diagnostic until you suppress it. See the code sample and options for setup; Securing an MCP Server shows how to admit MCP clients this way. OAuth for coding agents on your MCP server compares it with dynamic client registration and connects two agents.
The Documentation site covers configuration, deployment, the API reference and the OpenID Connect standard itself.
💎 Abblix Account
Prefer not to run the provider yourself? Abblix Account is a ready-to-use cloud service built on this library, with passkeys, MFA and social login; Quorvel Coffee shows it at work.
🤝 Feedback
Report what you run into, with the flow and the client you used, in issues or the discussions.
📃 License
This product is distributed under a source-available proprietary license.
It is free of charge for companies under $1M in annual revenue and under $1M raised in outside funding, for non-profits, educational institutions, personal projects and non-commercial open source. Free use allows one production issuer, with every protocol included and no limit on client applications or users. It comes "as is", with no guaranteed response time and no commitment to updates or maintenance.
See 📋License Agreement for details.
Redistributing the library to third parties inside a product you sell or deploy at customer sites needs a separate redistribution license. License types and prices are on the pricing page.
🗨️ Contacts
For more details about our products, services, or any general information regarding the Abblix OIDC Server, feel free to reach out to us. Below are the best ways to contact our team:
- General inquiries: [email protected]
- Support and security reports: [email protected], see the Security Policy
- Website: Abblix OIDC Server
Subscribe to our LinkedIn and Twitter:
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…
