# How to integrate okta with C# winforms application

**URL:** <https://devforum.okta.com/t/how-to-integrate-okta-with-c-winforms-application/22707>\
**Category:** Questions\
**Created:** [December 7, 2022, 12:34pm UTC](https://devforum.okta.com/t/how-to-integrate-okta-with-c-winforms-application/22707 "2022-12-07T12:34:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sureshasoha](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@sureshasoha](https://devforum.okta.com/u/sureshasoha)\
**Post date:** [December 7, 2022, 12:34pm UTC](https://devforum.okta.com/t/how-to-integrate-okta-with-c-winforms-application/22707/1 "2022-12-07T12:34:21Z")

</div>

All the examples I’ve seen are related to web apps or mobile apps. No references are made to WinForms. Is this possible? Can you point me to resources?

---

<div class="post-metadata">

**Author:** ![erik](https://avatars.discourse-cdn.com/v4/letter/e/b5ac83/32.png) [@erik](https://devforum.okta.com/u/erik)\
**Post date:** [December 7, 2022, 8:18pm UTC](https://devforum.okta.com/t/how-to-integrate-okta-with-c-winforms-application/22707/2 "2022-12-07T20:18:44Z")

</div>

Hello,

Okta SDKs are specific to .NET web apps.

You might want to look into this [IdentityModel sample](https://github.com/IdentityModel/IdentityModel.OidcClient.Samples/tree/main/WinFormsWebView2) to see if it accomplishes what you need.  
I have run the sample in the past and it seemed to work fine from the short amount of testing I did.  
You would just need to update the Authority/ClientId/(possibly Scopes) in [this file](https://github.com/IdentityModel/IdentityModel.OidcClient.Samples/blob/main/WinFormsWebView2/WinFormsWebView2/Form1.cs#L19).

Thank You,

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [February 12, 2024, 10:33pm UTC](https://devforum.okta.com/t/how-to-integrate-okta-with-c-winforms-application/22707/4 "2024-02-12T22:33:12Z")

</div>

Closed on February 12, 2024, 10:33pm UTC

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
