Google API Authentication in a WPF App
-
I need to call Google's People API from a WPF app. Google has mandated that you cannot use embedded browsers any more[^]. Therefore, my app need to open the browser, presumably with Process.Start() to Google's Authentication page, and then somehow detect if/when the user has been authenticated. How would you go about that?
If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.
-
I need to call Google's People API from a WPF app. Google has mandated that you cannot use embedded browsers any more[^]. Therefore, my app need to open the browser, presumably with Process.Start() to Google's Authentication page, and then somehow detect if/when the user has been authenticated. How would you go about that?
If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.
Again, you don't. Opening a browser and letting the user login using that doesn't give you ANY way of knowing when the user is logged in or not. I found samples provided by Google for Windows desktop apps just by reading the link you posted and following a couple links. They can be found at GitHub - googlesamples/oauth-apps-for-windows: OAuth for Apps: Samples for Windows[^].
Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
Dave Kreskowiak