sintaxi / dbox

NodeJS SDK for Dropbox API (THIS LIBRARY IS OBSOLETE!!)
514 stars 91 forks source link

setting accessToken etc gathered by everyauth #43

Closed wiber closed 11 years ago

wiber commented 11 years ago

Hi,

I'm a bit confused. Is it possible to go through the authentication process with everyauth and then set this node-dbox clients access token etc to the result?

Would one need to write a setter function of some sort for this?

Thanks for any help!

Elias

wiber commented 11 years ago

tried adding this:

setToken: function(request_token){ var params = sign(request_token) console.log('from dbox.js settoken params ' +params) },

and calling it with the token from everyauth, but no luck, what am I missing?

wiber commented 11 years ago

I'm thinking the secret are missing and that it needs to be set as well, looking for how to do that.

sintaxi commented 11 years ago

Yes, you do not need to use dbox to do the oauth handshake. You may use any valid dropbox access token so long as your app key/secret match.

create app using dropbox application credentials...

var app   = dbox.app({ "app_key": "umdez34678ck01fx", "app_secret": "tjm89017sci88o6" })

create client using token received from everyauth (or any other client)....

var client = app.client({ "oauth_token_secret":"aik5k6l45jl353","oauth_token":"wpqniizn61j5j70" })

hope this helps, Brock

wiber commented 11 years ago

Thanks a Bundle! That looks like it will work, will check in later. Thanks again. On Aug 25, 2012 4:20 PM, "Brock Whitten" notifications@github.com wrote:

Yes, you do not need to use dbox to do the oauth handshake. You may use any valid dropbox access token so long as your app key/secret match.

create app using dropbox application credentials...

var app = dbox.app({ "app_key": "umdez34678ck01fx", "app_secret": "tjm89017sci88o6" })

create client using token received from everyauth (or any other client)....

var client = app.client({ "oauth_token_secret":"aik5k6l45jl353","oauth_token":"wpqniizn61j5j70" })

hope this helps, Brock

— Reply to this email directly or view it on GitHubhttps://github.com/sintaxi/node-dbox/issues/43#issuecomment-8027028.