RFC8252 compliant and certified OpenID Connect and OAuth 2.0 client library for native applications
Install
| Product | Versions |
|---|---|
| .NET |
README
About Duende.IdentityModel.OidcClient
Duende.IdentityModel.OidcClient is an OpenID Connect (OIDC) client library for native applications. It provides
- Types that describe OIDC requests and responses
- Low level methods to construct protocol state and handle responses
- Higher level methods for
- Logging in
- Logging out
- Retrieving userinfo
- Refreshing tokens
Samples
Duende.IdentityModel.OidcClient targets .NET Standard, making it suitable for .NET and .NET Framework. It can be used to build OIDC native clients with a variety of .NET UI tools. The samples directory shows how to use it in
- .NET MAUI
- WPF with the system browser
- WPF with an embedded browser
- WinForms with an embedded browser
- Cross Platform Console Applications (relies on kestrel for processing the callback)
- Windows Console Applications (relies on an HttpListener - a wrapper around the windows HTTP.sys driver)
- Windows Console Applications using custom uri schemes
Documentation
More documentation is available here.
Standards and Certification
Duende.IdentityModel.OidcClient is a certified OpenID
Connect relying party implementation, and implements
RFC 8252, "OAuth 2.0 for native Applications".

Related Packages
- Library for claims-based identity, OAuth 2.0, and OpenID Connect: Duende.Labs.IdentityModel
- Extensions to this library, including DPoP support: Duende.Labs.IdentityModel.OidcClient.Extensions
Feedback
Duende.IdentityModel.OidcClient is released as open source under the Apache 2.0 license. Bug reports and contributions are welcome at the GitHub repository.
Changes from Previous Version
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.