I am looking to develop a C# application which interacts with AGOL. This application is a simple Windows application (not Silverlight, not JavaScript, not Python, etc.) and is intended to be part of the ArcGIS Marketplace. My understanding is that Marketplace applications are required to use OAuth2 in order to connect to AGOL.
Are there any .NET examples (sample code) which shows how to get an AGOL token using OAuth2?
I did find this URL which indicates that I can used the reserved redirect URL of "urn:ietf:wg:oauth:2.0:oob":