I am trying to get the Google authorization code using a simple C# console application. The whole process is pretty simple: sending a request using a url containing a unique Client Id
to Google Oauth2 endpoint, logging into the Google account and then get the authorization code:
string url = "https://accounts.google.com/o/oauth2/v2/auth?whatever";
Process.Start("chrome.exe", url); // open up browser so user can log in
// get the auth code from chrome
How I can get that generated code from Google chrome and pass it back to my app?