OpenIddict provides client, server, and token validation components for OpenID Connect and OAuth 2.0 flows across ASP.NET and desktop apps.
Overview
OpenIddict is a .NET framework for implementing OpenID Connect and OAuth 2.0 participants. Separate stacks cover acting as an authorization server, calling remote identity providers as a client, and validating tokens in resource applications.
Supported grants include authorization code, implicit, hybrid, client credentials, resource owner password, device authorization, and token exchange flows. Built-in stores integrate with Entity Framework Core, Entity Framework 6, and MongoDB, and custom stores can back other databases.
Server and validation components run on ASP.NET Core 2.3+ or ASP.NET 4.6.2+, while client libraries also target mobile and desktop platforms. Documentation positions the project as a framework requiring application-specific controllers rather than a turnkey identity appliance.
Samples demonstrate end-to-end flows, including a certification-oriented configuration, and the core ships under the Apache 2.0 license via NuGet packages.
Key features
- OAuth 2.0 and OIDC server stack
- Client stack for public apps
- Token validation middleware
- Multiple standard grant types
- EF Core and MongoDB stores
- ASP.NET Core integration
- Desktop and mobile clients
- NuGet-distributed packages
Use cases
- Custom identity servers
- OAuth clients in .NET apps
- API token validation
- Multi-flow SSO prototypes