Duende IdentityModel OIDC Client Samples
Samples of IdentityModel.OidcClient are available on GitHub. Our samples show how to use an OidcClient with a variety of platforms and UI tools.
.NET MAUIMobile and desktop app using .NET MAUI.
WPF with System BrowserWPF app using the system browser for login.
WPF with Embedded BrowserWPF app using an embedded WebView2 browser.
WinForms with Embedded BrowserWinForms app using an embedded WebView2 browser.
Cross-Platform ConsoleConsole app using Kestrel for processing the callback.
Windows Console (HttpListener)Console app using HttpListener (HTTP.sys wrapper).
Windows Console (Custom URI Schemes)Console app using custom URI schemes.
All samples use a demo instance of Duende IdentityServer as their OIDC Provider. You can see its source code on GitHub.
You can log in with alice/alice or bob/bob
Additional Samples
Section titled “Additional Samples”Unity3DCommunity sample for Unity3D authentication.
No Longer Maintained
Section titled “No Longer Maintained”These samples are no longer maintained because their underlying technology is no longer supported.