acron0 / AsanaNet

.NET API for Asana (www.asana.com)
MIT License
38 stars 29 forks source link

How to get an OAuth token #5

Closed EranBi closed 11 years ago

EranBi commented 11 years ago

Hi,

First of all, thanks for the project. also thanks for supporting OAuthToken.

Would you mind add an example of how to get an OAuth token?

Regards, Eran

acron0 commented 11 years ago

I agree this would be a good addition. Perhaps Robert wouldn't mind writing one up?

robertmiles3 commented 11 years ago

@EranBi...I recently did this, but actually abandoned it because of the ridiculous difficulty of using OAuth in a desktop application (i.e. showing a browser to gain access, constantly renewing expired tokens, etc). I've since moved on to the API key method.

It might be hard to write up a generic example since it involves showing a browser to the user, which is pretty dependent on the OS, whether you want it embedded, etc. I had an example, but it was for Mac using Xamarin.Mac and using an embedded UIWebView, so that's probably not going to fit your application. :)

EranBi commented 11 years ago

Thanks Robert & Antony, I also abandoned this at my desktop app.

Regards, Eran