Question

I'm building WP7 application using DropNet. I have successfully managed to log in and authorize the app (using WebBrowser control) and this works ok. The problem is when user checks 'remember me' on the drop box login screen - an obvious thing to do. When I run this application again then browser redirects to a page saying something like 'you have already authorized this application'. Nothing happens until I click the Continue/OK button on the page. The token is not valid until I click this button.

Why is this happening this way? Shouldn't it authorize the token on entering the authorization page so it would support user-free loging in?

Was it helpful?

Solution

Normally, you only do the OAuth login/auth stuff the first time he/she uses your app. Once they are authorized, you'll have an "access token" that you should save somewhere.

The next time the user runs your application, don't do any of the OAuth steps. Just load up the access token (sometimes called the "user token" in the DropNet docs) and start making real API requests.

new DropNetClient(appKey, appSecret, accessToken, accessTokenSecret)

OTHER TIPS

I have come across this issue; the problem was solved by setting

 _dropNetClient.UseSandbox = true; 

where _dropNetClient is an instance of DropNetClient

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top