https://github.com/petrenslavik/oauth2-winforms-client
https://github.com/petrenslavik/oauth2-winforms-client
authentication csharp dotnet oauth2 oidc okta winforms
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/petrenslavik/oauth2-winforms-client
- Owner: petrenslavik
- Created: 2022-12-19T11:11:21.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2026-05-20T23:51:33.000Z (about 1 month ago)
- Last Synced: 2026-05-21T05:57:01.355Z (about 1 month ago)
- Topics: authentication, csharp, dotnet, oauth2, oidc, okta, winforms
- Language: C#
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OAuth2 WinForms Client
A small example of integrating an OAuth 2.0 / OIDC client into a Windows
Forms application. Built primarily to explore the browser-redirect-and-
exchange flow in a desktop context (where there's no convenient HTTP
listener like a web app would have).
## Stack
- .NET (WinForms)
- Custom `AuthClient` implementing the authorisation-code flow
- Pluggable `IOidcClientOptionsBuilder` with an Okta-specific implementation
- `WinFormsBrowsers` for embedded browser flow handling
## Status
Personal exploration. Built to learn how OIDC integrates with desktop
applications in 2022.