I\'m doing research on OAuth 2.0 protocol.
I came stuck in the problem of generating bearer tokens for desktop/mobile applications that don\'t run on a web server.>
I have a c# desktop application where I had a similar problem. I was not getting proper answers on how to implement OAuth in desktop applications. To solve this issue I used inbuilt webbrowser control and read the auth code by reading the callback URL and generate the token. But a few months back the sites like Shopify, eBay, and QBO stopped supporting the IE11 and older version, and unfortunately, that inbuilt webbrowser control uses the libraries of IE11 so I was again stuck.
To overcome all the hurdles I implemented the c# listeners and it solved the issue permanently and now my app is browser-independent.
You can watch my complete video on that here and also can download the sample project from here.