Question:
Here are samples for doing OAuth2 authorization in a desktop application (using Chilkat) for Facebook, Google, LinkedIn, Salesforce, and GitHub. The technique should be usable for other providers..
OAuth2 for C# Desktop Applications for Facebook, Google, LinkedIn, Salesforce, and GitHub
OAuth2 for VB.NET Desktop Applications for Facebook, Google, LinkedIn, Salesforce, and GitHub
One reason for the example is that it can be translated into many different programming languages, as long as there's an ability to popup or embed a web browser. This particular example uses a asynchronous listener where a TaskCompleted event is fired when the embedded browser makes the callback.