Learn how to make the most out of the Dropbox Community here 💙. 

Forum Discussion

FJBDev's avatar
FJBDev
Helpful | Level 5
5 years ago
Solved

How to store secret_id in Java desktop app

Hello,   As I want to deploy the next version of my Java desktop app with the integration of the Dropbox API so that users can have access to their dropbox folder within the program. For this, I ...
  • Greg-DB's avatar
    5 years ago

    The app key, a.k.a. client ID, is public, and does not need to be hidden. The app secret a.k.a. client secret, should ideally be kept secret. (Leaking your app secret could let someone impersonate your app to an extent, though it wouldn't by itself enable access to any file data.)

     

    Client-side apps fundamentally can't keep secrets. You can make it more difficult for someone to try to extract it, but you can't make it impossible. For this reason, client-side apps, such as a desktop app like you describe, ideally shouldn't contain the app secret at all. To process the OAuth app authorization flow without the app secret, client-side apps should use the "token" flow.