Hi everyone,
After tweeting a lot @dropboxapi (thanks for the support guys) it will be more convenient to post a question on here.
I am developing an open source app (https://bitbucket.org/twasyl/slideshowfx) which allows to create HTML5 slide decks. The app is a desktop app using JavaFX. I would like to allow the user of my to upload their presentations on their Dropbox account.
So I created an uploader (based on the example provided here: https://www.dropbox.com/developers/core/start/java) that works like a charm when I provide the app key & secret. Indeed I open a browser that asks the user to authenticate and I retrieve the access token.
I have also implemented a version that uses the token flow in order to not place the secret in the source code and retrieve an access token.
My point here is to know the best practice of interacting with Dropbox (and more generally with services using OAuth2 for authorization) in an open source project. In non open source projects you can easily obfuscate the code, but not really in open source ones.
So where should I put app key & secret in order to ensure security? What workflow should I follow for releasing the app without compromising the security?
Again, thank you very much.
Best.