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

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), 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