# Oauth2 authentication by OKTA for desktop application (e.g. powerbuilder)

**URL:** <https://devforum.okta.com/t/oauth2-authentication-by-okta-for-desktop-application-e-g-powerbuilder/20019>\
**Category:** OAuth/OIDC\
**Created:** [March 30, 2022, 2:16am UTC](https://devforum.okta.com/t/oauth2-authentication-by-okta-for-desktop-application-e-g-powerbuilder/20019 "2022-03-30T02:16:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexshlam](https://avatars.discourse-cdn.com/v4/letter/a/41988e/32.png) [@alexshlam](https://devforum.okta.com/u/alexshlam)\
**Post date:** [March 30, 2022, 2:16am UTC](https://devforum.okta.com/t/oauth2-authentication-by-okta-for-desktop-application-e-g-powerbuilder/20019/1 "2022-03-30T02:16:16Z")

</div>

Hi,

Right now we’re using OKTA as IAM platform, we would like to explore how to use oauth2 protocol to authenticate the user on windows desktop application (e.g. client server app on desktop). Especially, how do we setup the callback URL for a desktop application. I see the reference here ([Configure SSO for Native apps | Okta Developer](https://developer.okta.com/docs/guides/configure-native-sso/main/#before-you-begin)), but it doesn’t mention how does the authz code returning back to the desktop application (it’s required to setup a http listener?), thanks.

Alex

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [February 12, 2024, 6:24pm UTC](https://devforum.okta.com/t/oauth2-authentication-by-okta-for-desktop-application-e-g-powerbuilder/20019/4 "2024-02-12T18:24:47Z")

</div>


