Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OAuth 2.0 (Google API) authentication from a WPF desktop application

I would like to use OAuth 2.0 from within a WPF application I am developing but I am stuck. It appears that the OAuth 2.0 works by forwarding you to a website and getting you confirm details.

Of course this is a WPF app, and I wonder if there are any work-arounds.

Specifically I am trying to authenticate with OAuth 2.0 for use with the google latitude API located here

https://developers.google.com/latitude/v1/using#auth

Are there examples of how to authenticate against OAuth 2.0 from a WPF desktop app?

like image 259
Martin Avatar asked May 05 '12 19:05

Martin


1 Answers

There's a sample WPF application that uses the google-api-dotnet-client library in the project repository:

https://github.com/googleapis/google-api-dotnet-client

This sample app uses the Tasks API, but it should be pretty easy to adapt it to use the Latitude API instead.

like image 100
Claudio Cherubino Avatar answered Sep 23 '22 13:09

Claudio Cherubino