dbxcli icon indicating copy to clipboard operation
dbxcli copied to clipboard

Where/how does dbxcli store account information?

Open stupkad opened this issue 5 years ago • 4 comments

Hi there,

first - thanks for this great piece of software.

Could anyone explain how dbxcli is linked to dropbox, and where/how the account information is stored?

Regards, Dietmar

stupkad avatar Nov 18 '19 14:11 stupkad

you login via oauth, it gives you a link for you to paste in your browser, you click accept, and it gives you a token to paste back into dbxcli and then it saves the authentication information

According to this method: https://github.com/dropbox/dbxcli/blob/master/cmd/root.go#L154

it stores the authentication configuration at <HOMEDIR>/.config/dbxcli/auth.json

mgrandi avatar Nov 21 '19 01:11 mgrandi

A question according this: Is the authentication for ever or is there a timeout and I have to renew it after x- days?

mwolf1989 avatar May 12 '20 07:05 mwolf1989

as far as i can tell, dropbox doesn't support getting a token for a certain period of time, so it should last until the token is revoked either through the API or through https://www.dropbox.com/account/connected_apps

mgrandi avatar May 12 '20 07:05 mgrandi

@mgrandi this is totally fine for me. I want to use it in a more or less headless context. Thanks!

mwolf1989 avatar May 12 '20 07:05 mwolf1989