Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
living-jordi
9 years agoExplorer | Level 4
Oauth callback into several service instances
We're using 3 service instances under a load balencer. In order to create an oauth session, we're using two endpoints: The first one is named `/start`. We are using this code: DbxApp...
Greg-DB
Dropbox Community Moderator
9 years agoThe code looks fine at a glance. Are you running in to any issues with this? As long as all instances have access to the same session data, I would expect this to work.
Specifically, as a security measure, what's happening is that the web auth flow needs to check that the "state" value passed back with the redirect URI (in the finish step) matches the original "state" value that was created for this app authorization flow originally and stored in the user's session (in the start step).
The SDK is open source so you can see what finishFromRedirect is doing, for example, if you want.
living-jordi
9 years agoExplorer | Level 4
There's no issue by now. It's just a thought we've figured out coding this code.
You've written down:
As long as all instances have access to the same session data, I would expect this to work.
As far I've been able to figure out, http sessions are per-instances linked. So, an instance is only allowd to have their owned sessions, isn't it?
- Greg-DB9 years ago
Dropbox Community Moderator
I'm not familiar enough with Java's HttpSession, and this may also depend on your particular setup, so I'm afraid I can't offer much insight on that side of things.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!